mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-05 10:23:39 +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:
@@ -34,7 +34,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class ContentTest {
|
||||
class ContentTest {
|
||||
|
||||
@Test
|
||||
void testToString() {
|
||||
|
||||
@@ -34,7 +34,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class MenuItemTest {
|
||||
class MenuItemTest {
|
||||
|
||||
@Test
|
||||
void testToString() {
|
||||
|
||||
@@ -49,7 +49,7 @@ import org.mockito.ArgumentCaptor;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class DispatcherTest {
|
||||
class DispatcherTest {
|
||||
|
||||
/**
|
||||
* Dispatcher is a singleton with no way to reset it's internal state back to the beginning.
|
||||
@@ -57,7 +57,7 @@ public class DispatcherTest {
|
||||
* influence on each other.
|
||||
*/
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
final var constructor = Dispatcher.class.getDeclaredConstructor();
|
||||
constructor.setAccessible(true);
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class ContentStoreTest {
|
||||
class ContentStoreTest {
|
||||
|
||||
@Test
|
||||
void testOnAction() {
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class MenuStoreTest {
|
||||
class MenuStoreTest {
|
||||
|
||||
@Test
|
||||
void testOnAction() {
|
||||
|
||||
@@ -39,7 +39,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class ContentViewTest {
|
||||
class ContentViewTest {
|
||||
|
||||
@Test
|
||||
void testStoreChanged() {
|
||||
|
||||
@@ -43,7 +43,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class MenuViewTest {
|
||||
class MenuViewTest {
|
||||
|
||||
@Test
|
||||
void testStoreChanged() {
|
||||
|
||||
Reference in New Issue
Block a user