/** * Describes the kind of test e.g. "IntegrationTest". * * @return e.g. "all tests including integration tests" * @see org.junit.runner.manipulation.Filter#describe() */ @Override public String describe() { if (Environment.isPropertyEnabled(Environment.INTEGRATION_TEST)) { return "all tests including integration tests"; } if (Environment.isPropertyEnabled(Environment.RUN_SMOKE_TESTS)) { return "tests marked as @SmokeTest"; } return "all tests (except tests marked as @Broken)"; }
/** * In some JEE environment like Google's App Engine (GAE) it is not allowed * to use multi threading. But you can also disable multi threading by * setting the system property {@link #DISABLE_THREADS}. * * @return normally true */ public static boolean areThreadsAllowed() { if (isGoogleAppEngine() || isPropertyEnabled(DISABLE_THREADS)) { return false; } return true; }