mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 02:59:23 +00:00
refactor: remove code smell java:S5786 (#2159)
https://sonarcloud.io/organizations/iluwatar/rules?open=java%3AS5786&rule_key=java%3AS5786
This commit is contained in:
@@ -35,7 +35,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class HalflingThiefTest {
|
||||
class HalflingThiefTest {
|
||||
|
||||
/**
|
||||
* Verify if the thief uses the provided stealing method
|
||||
|
||||
@@ -29,7 +29,7 @@ package com.iluwatar.templatemethod;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class HitAndRunMethodTest extends StealingMethodTest<HitAndRunMethod> {
|
||||
class HitAndRunMethodTest extends StealingMethodTest<HitAndRunMethod> {
|
||||
|
||||
/**
|
||||
* Create a new test for the {@link HitAndRunMethod}
|
||||
|
||||
@@ -48,12 +48,12 @@ public abstract class StealingMethodTest<M extends StealingMethod> {
|
||||
private InMemoryAppender appender;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
appender = new InMemoryAppender();
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void tearDown() {
|
||||
void tearDown() {
|
||||
appender.stop();
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ package com.iluwatar.templatemethod;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class SubtleMethodTest extends StealingMethodTest<SubtleMethod> {
|
||||
class SubtleMethodTest extends StealingMethodTest<SubtleMethod> {
|
||||
|
||||
/**
|
||||
* Create a new test for the {@link SubtleMethod}
|
||||
|
||||
Reference in New Issue
Block a user