Exemplo n.º 1
0
 @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()));
 }
Exemplo n.º 2
0
  @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();
 }
Exemplo n.º 4
0
 @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");
 }