org.drools.guvnor.server.util
Class TestEnvironmentSessionHelper
java.lang.Object
org.drools.guvnor.server.util.TestEnvironmentSessionHelper
public class TestEnvironmentSessionHelper
- extends Object
This is only to be used for testing, eg in hosted mode, or unit tests.
This is deliberately in the src/main path.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestEnvironmentSessionHelper
public TestEnvironmentSessionHelper()
getSession
public static javax.jcr.Session getSession()
getSession
public static javax.jcr.Session getSession(boolean erase)
getSessionFor
public static javax.jcr.Session getSessionFor(String userName)
throws javax.jcr.RepositoryException
- Uses the given user name.
- Throws:
javax.jcr.RepositoryException
shutdown
public static void shutdown()
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.