@Override @Before public void beforeEach() throws Exception { super.beforeEach(); hybrid = session.getNode("/Cars/Hybrid"); altima = session.getNode("/Cars/Hybrid/Nissan Altima"); assertThat(hybrid, is(notNullValue())); assertThat(altima, is(notNullValue())); }
@BeforeClass public static final void beforeAll() throws Exception { MultiUseAbstractTest.beforeAll(); // Import the node types and the data ... registerNodeTypes("cars.cnd"); importContent( "/", "io/cars-system-view-with-uuids.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW); }
@Override public void afterEach() throws Exception { NodeIterator nodeIterator = session.getRootNode().getNodes(); while (nodeIterator.hasNext()) { Node node = nodeIterator.nextNode(); if (!JcrLexicon.SYSTEM.getString().equals(node.getName())) { node.remove(); } } session.save(); super.afterEach(); }
@AfterClass public static final void afterAll() throws Exception { MultiUseAbstractTest.afterAll(); }
@BeforeClass public static final void beforeAll() throws Exception { MultiUseAbstractTest.beforeAll(); // Import the node types and the data ... registerNodeTypes("cnd/large-collections.cnd"); }