+ WritableTestRun testRun = null;\r
+\r
+ if (testRunBeanT != null) {\r
+ testRun = (WritableTestRun) getContext().getBean(testRunBeanT);\r
+ if (log.isTraceEnabled())\r
+ log.trace("Load test run bean from bean name " + testRunBeanT);\r
+ }\r
+\r
+ if (testRun == null) {\r
+ testRun = loadSingleFromContext(WritableTestRun.class);\r
+ if (testRun == null) {\r
+ testRun = new SimpleTestRun();\r
+ if (log.isTraceEnabled())\r
+ log.trace("Created simple test run");\r
+ } else {\r
+ if (log.isTraceEnabled())\r
+ log.trace("Load test run from scanning Spring context");\r
+ }\r
+ }\r