29package com.jogamp.junit.util;
31import java.io.BufferedReader;
32import java.io.IOException;
33import java.io.InputStreamReader;
35import org.junit.Assume;
36import org.junit.Before;
37import org.junit.BeforeClass;
38import org.junit.After;
39import org.junit.AfterClass;
40import org.junit.FixMethodOrder;
42import org.junit.rules.TestName;
43import org.junit.runners.MethodSorters;
46@FixMethodOrder(MethodSorters.NAME_ASCENDING)
48 @Rule
public final TestName _unitTestName =
new TestName();
50 static volatile boolean testSupported =
true;
57 System.err.println(
"setTestSupported: "+v);
62 return _unitTestName.getMethodName();
66 return getClass().getSimpleName()+separator+getTestMethodName();
70 return getClass().getName()+separator+getTestMethodName();
86 System.err.print(
"++++ TestCase.setUp: "+getFullTestName(
" - "));
88 System.err.println(
" - "+unsupportedTestMsg);
89 Assume.assumeTrue(testSupported);
96 System.err.println(
"++++ TestCase.tearDown: "+getFullTestName(
" - "));
99 static final String unsupportedTestMsg =
"Test not supported on this platform.";
102 final BufferedReader stdin =
new BufferedReader(
new InputStreamReader(System.in));
103 System.err.println(preMessage+
"> Press enter to continue");
105 System.err.println(stdin.readLine());
106 }
catch (
final IOException e) { e.printStackTrace(); }
final String getSimpleTestName(final String separator)
static final void oneTimeSetUpBase()
final String getTestMethodName()
static void waitForKey(final String preMessage)
static final void oneTimeTearDownBase()
static final boolean isTestSupported()
final void tearDownBase()
final String getFullTestName(final String separator)
static final void setTestSupported(final boolean v)