Commit 5834f2b8 authored by DominikE's avatar DominikE

Remove old assert methods

parent 5dfa0449
Pipeline #2512 passed with stage
in 41 seconds
......@@ -5,8 +5,6 @@
package edu.tigers.moduli;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.Before;
......@@ -41,7 +39,7 @@ public class ModuliTest
@Test
public void testModuliCycle() throws Exception
{
assertEquals(ModulesState.NOT_LOADED, moduli.getModulesState().get());
assertThat(moduli.getModulesState().get()).isEqualTo(ModulesState.NOT_LOADED);
moduli.loadModulesSafe(MODULE_CONFIG_PATH + "test_config.xml");
assertThat(moduli.getModulesState().get()).isEqualTo(ModulesState.RESOLVED);
......@@ -60,15 +58,15 @@ public class ModuliTest
{
moduli.loadModulesSafe(MODULE_CONFIG_PATH + "test_config.xml");
TestModule module = moduli.getModule(TestModule.class);
assertTrue(module.isConstructed());
assertThat(module.isConstructed()).isTrue();
moduli.startModules();
assertTrue(module.isInitialized());
assertTrue(module.isStarted());
assertThat(module.isInitialized()).isTrue();
assertThat(module.isStarted()).isTrue();
moduli.stopModules();
assertTrue(module.isStopped());
assertTrue(module.isDeinitialized());
assertThat(module.isStopped()).isTrue();
assertThat(module.isDeinitialized()).isTrue();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment