Search in sources :

Example 1 with RunWithClientSession

use of org.eclipse.scout.rt.testing.client.runner.RunWithClientSession in project scout.rt by eclipse.

the class AbstractDesktopTest method testClosingDoBeforeClosingInternal.

/**
 * {@link AbstractDesktop#doBeforeClosingInternal()}
 */
@Test
// ensures that this test runs with its own clean desktop
@RunWithClientSession(value = TestEnvironmentClientSession.class, provider = ClientSessionProvider.class)
public void testClosingDoBeforeClosingInternal() {
    TestEnvironmentDesktop desktop = (TestEnvironmentDesktop) IDesktop.CURRENT.get();
    boolean closing = desktop.doBeforeClosingInternal();
    assertTrue(closing);
}
Also used : TestEnvironmentDesktop(org.eclipse.scout.rt.client.testenvironment.ui.desktop.TestEnvironmentDesktop) Test(org.junit.Test) RunWithClientSession(org.eclipse.scout.rt.testing.client.runner.RunWithClientSession)

Aggregations

TestEnvironmentDesktop (org.eclipse.scout.rt.client.testenvironment.ui.desktop.TestEnvironmentDesktop)1 RunWithClientSession (org.eclipse.scout.rt.testing.client.runner.RunWithClientSession)1 Test (org.junit.Test)1