31 lines
620 B
Java
31 lines
620 B
Java
package org.warp.jcwdb.tests;
|
|
|
|
import org.junit.After;
|
|
import org.junit.Before;
|
|
import org.junit.Test;
|
|
import org.warp.jcwdb.utils.TestUtils;
|
|
|
|
public class DBRootProperties {
|
|
private TestUtils.WrappedDb db;
|
|
private TestUtils.RootClass root;
|
|
|
|
@Before
|
|
public void setUp() throws Exception {
|
|
db = TestUtils.wrapDb().create((db) -> {
|
|
root = db.get().loadRoot(TestUtils.RootClass.class);
|
|
});
|
|
db.setRootClassProperties(root);
|
|
db.closeAndReopen();
|
|
}
|
|
|
|
@Test
|
|
public void shouldMatchAllProperties() {
|
|
db.testRootClassProperties(root);
|
|
}
|
|
|
|
@After
|
|
public void tearDown() throws Exception {
|
|
db.delete();
|
|
}
|
|
}
|