Search in sources :

Example 1 with IRunContextProvider

use of org.eclipse.scout.rt.testing.platform.runner.statement.RunContextStatement.IRunContextProvider in project scout.rt by eclipse.

the class PlatformTestRunner method classBlock.

@Override
protected Statement classBlock(final RunNotifier notifier) {
    final Statement s4 = super.classBlock(notifier);
    final Statement s3 = new RunContextStatement(s4, new IRunContextProvider() {

        @Override
        public RunContext create() {
            return createJUnitRunContext();
        }
    });
    final Statement s2 = new AssertNoRunningJobsStatement(s3, "Test class");
    final Statement s1 = new PlatformStatement(s2, ReflectionUtility.getAnnotation(RunWithNewPlatform.class, getTestClass().getJavaClass()));
    return s1;
}
Also used : IRunContextProvider(org.eclipse.scout.rt.testing.platform.runner.statement.RunContextStatement.IRunContextProvider) Statement(org.junit.runners.model.Statement) SubjectStatement(org.eclipse.scout.rt.testing.platform.runner.statement.SubjectStatement) BeanAnnotationsCleanupStatement(org.eclipse.scout.rt.testing.platform.runner.statement.BeanAnnotationsCleanupStatement) AssertNoRunningJobsStatement(org.eclipse.scout.rt.testing.platform.runner.statement.AssertNoRunningJobsStatement) TimeoutRunContextStatement(org.eclipse.scout.rt.testing.platform.runner.statement.TimeoutRunContextStatement) BeanAnnotationsInitStatement(org.eclipse.scout.rt.testing.platform.runner.statement.BeanAnnotationsInitStatement) RegisterBeanStatement(org.eclipse.scout.rt.testing.platform.runner.statement.RegisterBeanStatement) ThrowHandledExceptionStatement(org.eclipse.scout.rt.testing.platform.runner.statement.ThrowHandledExceptionStatement) ClearThreadInterruptionStatusStatement(org.eclipse.scout.rt.testing.platform.runner.statement.ClearThreadInterruptionStatusStatement) RunContextStatement(org.eclipse.scout.rt.testing.platform.runner.statement.RunContextStatement) PlatformStatement(org.eclipse.scout.rt.testing.platform.runner.statement.PlatformStatement) TransactionAddFailureOnAnyExceptionStatement(org.eclipse.scout.rt.testing.platform.runner.statement.TransactionAddFailureOnAnyExceptionStatement) TimesStatement(org.eclipse.scout.rt.testing.platform.runner.statement.TimesStatement) TimeoutRunContextStatement(org.eclipse.scout.rt.testing.platform.runner.statement.TimeoutRunContextStatement) RunContextStatement(org.eclipse.scout.rt.testing.platform.runner.statement.RunContextStatement) RunContext(org.eclipse.scout.rt.platform.context.RunContext) AssertNoRunningJobsStatement(org.eclipse.scout.rt.testing.platform.runner.statement.AssertNoRunningJobsStatement) PlatformStatement(org.eclipse.scout.rt.testing.platform.runner.statement.PlatformStatement)

Aggregations

RunContext (org.eclipse.scout.rt.platform.context.RunContext)1 AssertNoRunningJobsStatement (org.eclipse.scout.rt.testing.platform.runner.statement.AssertNoRunningJobsStatement)1 BeanAnnotationsCleanupStatement (org.eclipse.scout.rt.testing.platform.runner.statement.BeanAnnotationsCleanupStatement)1 BeanAnnotationsInitStatement (org.eclipse.scout.rt.testing.platform.runner.statement.BeanAnnotationsInitStatement)1 ClearThreadInterruptionStatusStatement (org.eclipse.scout.rt.testing.platform.runner.statement.ClearThreadInterruptionStatusStatement)1 PlatformStatement (org.eclipse.scout.rt.testing.platform.runner.statement.PlatformStatement)1 RegisterBeanStatement (org.eclipse.scout.rt.testing.platform.runner.statement.RegisterBeanStatement)1 RunContextStatement (org.eclipse.scout.rt.testing.platform.runner.statement.RunContextStatement)1 IRunContextProvider (org.eclipse.scout.rt.testing.platform.runner.statement.RunContextStatement.IRunContextProvider)1 SubjectStatement (org.eclipse.scout.rt.testing.platform.runner.statement.SubjectStatement)1 ThrowHandledExceptionStatement (org.eclipse.scout.rt.testing.platform.runner.statement.ThrowHandledExceptionStatement)1 TimeoutRunContextStatement (org.eclipse.scout.rt.testing.platform.runner.statement.TimeoutRunContextStatement)1 TimesStatement (org.eclipse.scout.rt.testing.platform.runner.statement.TimesStatement)1 TransactionAddFailureOnAnyExceptionStatement (org.eclipse.scout.rt.testing.platform.runner.statement.TransactionAddFailureOnAnyExceptionStatement)1 Statement (org.junit.runners.model.Statement)1