27package jau.test.junit.util;
29import java.io.BufferedReader;
30import java.io.IOException;
31import java.io.InputStreamReader;
33import org.junit.Assume;
34import org.junit.Before;
35import org.junit.BeforeClass;
36import org.junit.After;
37import org.junit.AfterClass;
38import org.junit.FixMethodOrder;
40import org.junit.rules.TestName;
41import org.junit.runners.MethodSorters;
44@FixMethodOrder(MethodSorters.NAME_ASCENDING)
46 @Rule
public final TestName _unitTestName =
new TestName();
48 static volatile boolean testSupported =
true;
55 System.err.println(
"setTestSupported: "+v);
60 return _unitTestName.getMethodName();
64 return getClass().getSimpleName()+separator+getTestMethodName();
68 return getClass().getName()+separator+getTestMethodName();
84 System.err.print(
"++++ TestCase.setUp: "+getFullTestName(
" - "));
86 System.err.println(
" - "+unsupportedTestMsg);
87 Assume.assumeTrue(testSupported);
94 System.err.println(
"++++ TestCase.tearDown: "+getFullTestName(
" - "));
97 static final String unsupportedTestMsg =
"Test not supported on this platform.";
100 final BufferedReader stdin =
new BufferedReader(
new InputStreamReader(System.in));
101 System.err.println(preMessage+
"> Press enter to continue");
103 System.err.println(stdin.readLine());
104 }
catch (
final IOException e) { e.printStackTrace(); }
static void waitForKey(final String preMessage)
static final void oneTimeSetUpBase()
final void tearDownBase()
static final boolean isTestSupported()
final String getTestMethodName()
final String getFullTestName(final String separator)
static final void setTestSupported(final boolean v)
final String getSimpleTestName(final String separator)
static final void oneTimeTearDownBase()