Revise Checkstyle rules to prohibit use of assertions other than AssertJ
Closes gh-31116
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user