Commit 83369066 authored by Ate Douma's avatar Ate Douma

CMS7-16: remove test node after test

parent 59b2245c
......@@ -58,10 +58,17 @@ public class HippoContentTypeServiceTest extends PluginTest {
@After
public void tearDown() throws Exception {
serviceModule.shutdown();
if (session != null && session.getRootNode().hasNode("hippo:namespaces/test")) {
session.getRootNode().getNode("hippo:namespaces/test").remove();
session.save();
session.refresh(false);
if (session != null ) {
if (session.getRootNode().hasNode("hippo:namespaces/test")) {
session.getRootNode().getNode("hippo:namespaces/test").remove();
session.save();
session.refresh(false);
}
if (session.getRootNode().hasNode("testNode")) {
session.getRootNode().getNode("testNode").remove();
session.save();
session.refresh(false);
}
}
super.tearDown();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment