Revise Checkstyle rules to prohibit use of assertions other than AssertJ

Closes gh-31116
This commit is contained in:
Sam Brannen
2023-08-26 15:28:25 +02:00
parent f9588de247
commit 7598bca799
3 changed files with 16 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -44,7 +44,7 @@ import org.springframework.core.testfixture.io.buffer.AbstractLeakCheckingTests;
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.fail;
import static org.assertj.core.api.Assertions.fail;
/**
* @author Arjen Poutsma
@@ -339,7 +339,7 @@ public class Jackson2TokenizerTests extends AbstractLeakCheckingTests {
}
}
catch (IOException ex) {
fail(ex);
fail(ex.getMessage(), ex);
}
})
.verifyComplete();