Renamed services and refactored packages
This commit is contained in:
@@ -16,11 +16,11 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
class LocalizationManagerTest {
|
||||
|
||||
private LocalizationManager localizationManager;
|
||||
private LocalizationService localizationManager;
|
||||
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
this.localizationManager = new LocalizationManagerImpl();
|
||||
this.localizationManager = new LocalizationServiceImpl();
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -153,7 +153,7 @@ class LocalizationManagerTest {
|
||||
|
||||
String result = this.localizationManager.translate(999);
|
||||
|
||||
assertTrue(result.startsWith(LocalizationManagerImpl.NOT_FOUND_PREFIX));
|
||||
assertTrue(result.startsWith(LocalizationServiceImpl.NOT_FOUND_PREFIX));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -192,7 +192,7 @@ class LocalizationManagerTest {
|
||||
|
||||
String result = this.localizationManager.translate("unknown");
|
||||
|
||||
assertTrue(result.startsWith(LocalizationManagerImpl.NOT_FOUND_PREFIX));
|
||||
assertTrue(result.startsWith(LocalizationServiceImpl.NOT_FOUND_PREFIX));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.mockito.junit.jupiter.MockitoExtension;
|
||||
public class ModuleExecutorImplTest {
|
||||
|
||||
@Mock
|
||||
private ModuleManager moduleManager;
|
||||
private ModuleService moduleManager;
|
||||
|
||||
private ModuleExecutorImpl moduleExecutor;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import de.extio.game_engine.renderer.work.RendererWorkingSet;
|
||||
|
||||
public class ModuleManagerTest {
|
||||
|
||||
private ModuleManagerImpl moduleManager;
|
||||
private ModuleServiceImpl moduleManager;
|
||||
|
||||
private TestModule testModule;
|
||||
|
||||
@@ -28,7 +28,7 @@ public class ModuleManagerTest {
|
||||
initialModules.add(this.testModule);
|
||||
initialModules.add(this.testClientModule);
|
||||
|
||||
this.moduleManager = new ModuleManagerImpl(initialModules, mock(RendererWorkingSet.class));
|
||||
this.moduleManager = new ModuleServiceImpl(initialModules, mock(RendererWorkingSet.class));
|
||||
this.moduleManager.afterPropertiesSet();
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ public class ModuleManagerTest {
|
||||
|
||||
@Test
|
||||
public void testAfterPropertiesSet_EmptyModules() throws Exception {
|
||||
final ModuleManagerImpl emptyManager = new ModuleManagerImpl(List.of(), mock(RendererWorkingSet.class));
|
||||
final ModuleServiceImpl emptyManager = new ModuleServiceImpl(List.of(), mock(RendererWorkingSet.class));
|
||||
emptyManager.afterPropertiesSet();
|
||||
|
||||
assertTrue(emptyManager.getModulesAll().isEmpty());
|
||||
@@ -49,7 +49,7 @@ public class ModuleManagerTest {
|
||||
|
||||
@Test
|
||||
public void testAfterPropertiesSet_NullModules() throws Exception {
|
||||
final ModuleManagerImpl nullManager = new ModuleManagerImpl(null, mock(RendererWorkingSet.class));
|
||||
final ModuleServiceImpl nullManager = new ModuleServiceImpl(null, mock(RendererWorkingSet.class));
|
||||
nullManager.afterPropertiesSet();
|
||||
|
||||
assertTrue(nullManager.getModulesAll().isEmpty());
|
||||
|
||||
@@ -4,6 +4,8 @@ import java.util.UUID;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import de.extio.game_engine.util.rng.FastRandomUUID;
|
||||
|
||||
public class FastRandomUUIDTest {
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user