diff options
author | Sven Gothel <[email protected]> | 2011-08-31 02:19:49 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-08-31 02:19:49 +0200 |
commit | 71d691db8c631cb2b2fac6e61a1027d3d30008a2 (patch) | |
tree | c6d6e9eccf62a4281f45180eef7598ab61b8efa7 /src/test/com/jogamp | |
parent | 072dc4b6e9bdc501873633fff824802d3948a636 (diff) |
UnitTest UI: SingletonInstance Lock at @BeforeClass - before all other sub-class calls
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/util/UITestCase.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/util/UITestCase.java b/src/test/com/jogamp/opengl/test/junit/util/UITestCase.java index 9856616d1..1ff1428fc 100644 --- a/src/test/com/jogamp/opengl/test/junit/util/UITestCase.java +++ b/src/test/com/jogamp/opengl/test/junit/util/UITestCase.java @@ -49,7 +49,7 @@ public abstract class UITestCase { static volatile SingletonInstance singletonInstance; - private final synchronized void initSingletonInstance() { + private static final synchronized void initSingletonInstance() { if( null == singletonInstance ) { // singletonInstance = SingletonInstance.createFileLock(SINGLE_INSTANCE_LOCK_POLL, SINGLE_INSTANCE_LOCK_FILE); singletonInstance = SingletonInstance.createServerSocket(SINGLE_INSTANCE_LOCK_POLL, SINGLE_INSTANCE_LOCK_PORT); @@ -74,6 +74,7 @@ public abstract class UITestCase { @BeforeClass public static void oneTimeSetUp() { // one-time initialization code + initSingletonInstance(); } @AfterClass @@ -85,7 +86,6 @@ public abstract class UITestCase { @Before public void setUp() { - initSingletonInstance(); System.err.println("++++ UITestCase.setUp: "+getFullTestName()); } |