Providing a property to allow failing tests in the repository
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 07 Oct 2008 11:18:24 +0200
changeset 47176d66a9cbe6
parent 46 b61dcd332269
child 48 79a576394dd7
Providing a property to allow failing tests in the repository
currency/test/org/apidesign/apifest08/test/Task3Test.java
     1.1 --- a/currency/test/org/apidesign/apifest08/test/Task3Test.java	Tue Oct 07 11:08:28 2008 +0200
     1.2 +++ b/currency/test/org/apidesign/apifest08/test/Task3Test.java	Tue Oct 07 11:18:24 2008 +0200
     1.3 @@ -55,6 +55,11 @@
     1.4      }
     1.5  
     1.6      public void testFewQueriesForOnlineConvertor() {
     1.7 +        if (Boolean.getBoolean("ignore.failing")) {
     1.8 +            // implement me!
     1.9 +            return;
    1.10 +        }
    1.11 +
    1.12          Convertor c = createOnlineCZKUSDConvertor();
    1.13          doFewQueriesForOnlineConvertor(c);
    1.14      }
    1.15 @@ -71,11 +76,18 @@
    1.16  
    1.17          // convert 15.97CZK to USD using c:
    1.18          //assertEquals("Result is 1$");
    1.19 +
    1.20 +        fail("Implement me!");
    1.21      }
    1.22  
    1.23      /** Join the convertors and show they behave sane.
    1.24       */
    1.25      public void testOnlineConvertorComposition() throws Exception {
    1.26 +        if (Boolean.getBoolean("ignore.failing")) {
    1.27 +            // implement me!
    1.28 +            return;
    1.29 +        }
    1.30 +        
    1.31          Convertor c = Task2Test.merge(
    1.32              createOnlineCZKUSDConvertor(),
    1.33              Task1Test.createSKKtoCZK()