Example #1
0
  protected static TestSuite createAIOTestSuite(final Class<?> clazz) {
    TestSuite suite = new TestSuite(clazz.getName() + " testsuite");

    if (AIOSequentialFileFactory.isSupported()) {
      suite.addTestSuite(clazz);
    } else {
      // System.out goes towards JUnit report
      System.out.println("Test " + clazz.getName() + " ignored as AIO is not available");
    }

    return suite;
  }
 @BeforeClass
 public static void hasAIO() {
   org.junit.Assume.assumeTrue(
       "Test case needs AIO to run", AIOSequentialFileFactory.isSupported());
 }