use of org.pentaho.platform.engine.core.system.UserSession in project pentaho-platform by pentaho.
the class SessionIT method testUserSessionWithOutAuthentication.
public void testUserSessionWithOutAuthentication() {
startTest();
SimpleParameterProvider parameters = new SimpleParameterProvider();
// $NON-NLS-1$ //$NON-NLS-2$
parameters.setParameter("actionname", "ViewAction");
// $NON-NLS-1$
UserSession usession = new UserSession("Admin", Locale.US, parameters);
Log log = usession.getLogger();
usession.setActionName("ViewAction");
usession.doStartupActions(parameters);
// $NON-NLS-1$
log.info("Session is active");
// $NON-NLS-1$
assertEquals(usession.getActionName(), "ViewAction");
finishTest();
}
Aggregations