+ private static EffectiveModelContext TEST_SCHEMA_CONTEXT;
+
+ protected InMemoryDOMDataStore store;
+
+ @BeforeClass
+ public static void beforeClass() {
+ TEST_SCHEMA_CONTEXT = TestModel.createTestContext();
+ }
+
+ @AfterClass
+ public static void afterClass() {
+ TEST_SCHEMA_CONTEXT = null;
+ }
+
+ @Before
+ public void setUp() {
+ store = new InMemoryDOMDataStore("test", MoreExecutors.newDirectExecutorService());
+ store.onModelContextUpdated(TEST_SCHEMA_CONTEXT);
+ }
+
+ protected void commitTransaction(final DOMStoreWriteTransaction transaction) {
+ DOMStoreThreePhaseCommitCohort cohort = transaction.ready();
+ cohort.preCommit();
+ cohort.commit();
+ }