use of org.eclipse.scout.rt.testing.client.runner.ClientTestRunnerDifferentSubjectTest.JUnitClientSession in project scout.rt by eclipse.
the class ClientTestRunnerDifferentSubjectTest method test2.
@Test
@RunWithSubject("john")
public void test2() {
ISession clientSession = IClientSession.CURRENT.get();
assertTrue(clientSession instanceof JUnitClientSession);
assertEquals("john", getCurrentUser());
m_clientSessions.add(clientSession);
}
use of org.eclipse.scout.rt.testing.client.runner.ClientTestRunnerDifferentSubjectTest.JUnitClientSession in project scout.rt by eclipse.
the class ClientTestRunnerDifferentSubjectTest method test1.
@Test
public void test1() {
ISession clientSession = IClientSession.CURRENT.get();
assertTrue(clientSession instanceof JUnitClientSession);
assertEquals("anna", getCurrentUser());
m_clientSessions.add(clientSession);
}
use of org.eclipse.scout.rt.testing.client.runner.ClientTestRunnerDifferentSubjectTest.JUnitClientSession in project scout.rt by eclipse.
the class ClientTestRunnerDifferentSubjectTest method afterClass.
@AfterClass
public static void afterClass() {
ISession clientSession = IClientSession.CURRENT.get();
assertTrue(clientSession instanceof JUnitClientSession);
assertEquals("anna", getCurrentUser());
m_clientSessions.add(clientSession);
assertEquals(2, m_clientSessions.size());
}
use of org.eclipse.scout.rt.testing.client.runner.ClientTestRunnerDifferentSubjectTest.JUnitClientSession in project scout.rt by eclipse.
the class ClientTestRunnerDifferentSubjectTest method beforeClass.
@BeforeClass
public static void beforeClass() {
m_clientSessions = new HashSet<>();
ISession clientSession = IClientSession.CURRENT.get();
assertTrue(clientSession instanceof JUnitClientSession);
assertEquals("anna", getCurrentUser());
m_clientSessions.add(clientSession);
}
Aggregations