Improve test.
This commit is contained in:
parent
75db738843
commit
73863224b1
@ -1,6 +1,7 @@
|
||||
package ch.psi.daq.test.queryrest.backend;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNotSame;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.junit.Assert.assertSame;
|
||||
@ -31,7 +32,9 @@ public class BackendTest extends AbstractDaqRestTest {
|
||||
private ApplicationContext context;
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {}
|
||||
public void setUp() throws Exception {
|
||||
context.getBean(DomainConfig.BEAN_NAME_BACKENDS);
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() {}
|
||||
@ -45,6 +48,9 @@ public class BackendTest extends AbstractDaqRestTest {
|
||||
final Backend copy = SerializationHelper.copy(backend);
|
||||
|
||||
assertSame(backend, copy);
|
||||
assertNotNull(Backend.byName(backend.getName().toLowerCase()));
|
||||
assertNotNull(Backend.byName(backend.getName().toUpperCase()));
|
||||
assertNotNull(Backend.byId(backend.getId()));
|
||||
}
|
||||
assertTrue(backendsInit);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user