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.
Field Summary |
static org.slf4j.Logger |
log
|
static javax.jcr.Repository |
repository
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.slf4j.Logger log
repository
public static javax.jcr.Repository repository
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-2011 JBoss Inc.. All Rights Reserved.