Add JUnit 5 checkstyle rules
Add a rule to enforce JUnit 5 usage and conventions. Closes gh-17093
This commit is contained in:
@@ -166,7 +166,7 @@ class SampleActuatorApplicationTests {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testBeans() {
|
||||
void testBeans() {
|
||||
@SuppressWarnings("rawtypes")
|
||||
ResponseEntity<Map> entity = this.restTemplate.withBasicAuth("user", getPassword())
|
||||
.getForEntity("/actuator/beans", Map.class);
|
||||
|
||||
@@ -58,7 +58,7 @@ class ShutdownSampleActuatorApplicationTests {
|
||||
|
||||
@Test
|
||||
@DirtiesContext
|
||||
public void testShutdown() {
|
||||
void testShutdown() {
|
||||
@SuppressWarnings("rawtypes")
|
||||
ResponseEntity<Map> entity = this.restTemplate.withBasicAuth("user", getPassword())
|
||||
.postForEntity("/actuator/shutdown", null, Map.class);
|
||||
|
||||
Reference in New Issue
Block a user