samples/deadlock/test/org/apidesign/deadlock/startuplock/CLIHandlerBlockingWithNbTestCaseTest.java
changeset 263 7e8e995065c5
parent 107 907f5d8e343c
     1.1 --- a/samples/deadlock/test/org/apidesign/deadlock/startuplock/CLIHandlerBlockingWithNbTestCaseTest.java	Sat Jun 14 09:54:32 2008 +0200
     1.2 +++ b/samples/deadlock/test/org/apidesign/deadlock/startuplock/CLIHandlerBlockingWithNbTestCaseTest.java	Sat Jun 14 18:51:38 2008 +0200
     1.3 @@ -1,15 +1,7 @@
     1.4  package org.apidesign.deadlock.startuplock;
     1.5  
     1.6  import java.io.File;
     1.7 -import java.util.logging.Handler;
     1.8  import java.util.logging.Level;
     1.9 -import java.util.logging.LogRecord;
    1.10 -import java.util.logging.Logger;
    1.11 -import org.junit.After;
    1.12 -import org.junit.AfterClass;
    1.13 -import org.junit.Before;
    1.14 -import org.junit.BeforeClass;
    1.15 -import org.junit.Test;
    1.16  import org.netbeans.junit.NbTestCase;
    1.17  import static org.junit.Assert.*;
    1.18  
    1.19 @@ -29,6 +21,7 @@
    1.20      public void testStart() throws Exception {
    1.21          File lockFile = File.createTempFile("pref", ".tmp");
    1.22          int result = CLIHandlerBlocking.start(lockFile);
    1.23 +        if (Boolean.getBoolean("no.failures")) return;
    1.24          assertEquals("Show a failure", -10, result);
    1.25      }
    1.26  }