use of org.apache.wiki.auth.user.XMLUserDatabase in project jspwiki by apache.
the class CookieAssertionLoginModuleTest method setUp.
/**
*/
@Before
public void setUp() throws Exception {
Properties props = TestEngine.getTestProperties();
props.put(XMLUserDatabase.PROP_USERDATABASE, "target/test-classes/userdatabase.xml");
m_engine = new TestEngine(props);
m_db = new XMLUserDatabase();
m_subject = new Subject();
try {
m_db.initialize(m_engine, props);
} catch (NoRequiredPropertyException e) {
System.err.println(e.getMessage());
Assert.assertTrue(false);
}
}
use of org.apache.wiki.auth.user.XMLUserDatabase in project jspwiki by apache.
the class AnonymousLoginModuleTest method setUp.
/**
*/
@Before
public void setUp() throws Exception {
Properties props = TestEngine.getTestProperties();
props.put(XMLUserDatabase.PROP_USERDATABASE, "target/test-classes/userdatabase.xml");
m_engine = new TestEngine(props);
m_db = new XMLUserDatabase();
m_subject = new Subject();
try {
m_db.initialize(m_engine, props);
} catch (NoRequiredPropertyException e) {
System.err.println(e.getMessage());
Assert.assertTrue(false);
}
}
use of org.apache.wiki.auth.user.XMLUserDatabase in project jspwiki by apache.
the class UserDatabaseLoginModuleTest method setUp.
/**
*/
@Before
public void setUp() throws Exception {
Properties props = TestEngine.getTestProperties();
props.put(XMLUserDatabase.PROP_USERDATABASE, "target/test-classes/userdatabase.xml");
m_engine = new TestEngine(props);
m_db = new XMLUserDatabase();
m_subject = new Subject();
try {
m_db.initialize(m_engine, props);
} catch (NoRequiredPropertyException e) {
System.err.println(e.getMessage());
Assert.assertTrue(false);
}
}
use of org.apache.wiki.auth.user.XMLUserDatabase in project jspwiki by apache.
the class WebContainerLoginModuleTest method setUp.
@Before
public void setUp() throws Exception {
Properties props = TestEngine.getTestProperties();
props.put(XMLUserDatabase.PROP_USERDATABASE, "target/test-classes/userdatabase.xml");
m_engine = new TestEngine(props);
m_db = new XMLUserDatabase();
m_subject = new Subject();
try {
m_db.initialize(m_engine, props);
} catch (NoRequiredPropertyException e) {
System.err.println(e.getMessage());
Assert.assertTrue(false);
}
}
Aggregations