Ejemplo n.º 1
0
        public SpringProcessEngineTestCase() : base()
        {
            this.testContextManager = new TestContextManager(this.GetType());

            SpringTestHelper testHelper = lookupTestHelper();

            testHelper.beforeTestClass(testContextManager);
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void runBare() throws Throwable
        public override void runBare()
        {
            testContextManager.prepareTestInstance(this);     // this will initialize all dependencies
            try
            {
                base.runBare();
            }
            finally
            {
                testContextManager.afterTestClass();
                applicationContext.close();
                applicationContext = null;
                processEngine      = null;
                testContextManager = null;
                CachedIntrospectionResults.clearClassLoader(this.GetType().ClassLoader);
            }
        }
Ejemplo n.º 3
0
 public virtual void beforeTestClass(TestContextManager testContextManager)
 {
     testContextManager.registerTestExecutionListeners(new TestExecutionListenerAnonymousInnerClass(this));
 }