mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 22:58:36 +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:
+1
-1
@@ -36,7 +36,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class GiantControllerTest {
|
||||
class GiantControllerTest {
|
||||
|
||||
/**
|
||||
* Verify if the controller passes the health level through to the model and vice versa
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class GiantModelTest {
|
||||
class GiantModelTest {
|
||||
|
||||
/**
|
||||
* Verify if the health value is set properly though the constructor and setter
|
||||
|
||||
+3
-3
@@ -42,17 +42,17 @@ import org.slf4j.LoggerFactory;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class GiantViewTest {
|
||||
class GiantViewTest {
|
||||
|
||||
private InMemoryAppender appender;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
appender = new InMemoryAppender(GiantView.class);
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void tearDown() {
|
||||
void tearDown() {
|
||||
appender.stop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user