Examples of provideTests()


Examples of uk.ac.uea.threadr.internal.testing.SafetyTester.provideTests()

   
    SafetyTester tester = new SafetyTester();
    Set<ThreadTest> tests = new HashSet<>();
   
    tests.add(new ReferenceTest());
    tester.provideTests(tests);
   
    assertEquals("Incorrect test result returned.",
        ThreadSafety.SEQUENTIAL, tester.testSafety(new ReferenceTask()));
  }
 
View Full Code Here

Examples of uk.ac.uea.threadr.internal.testing.SafetyTester.provideTests()

   @since 1.5
   */
  public final void testSafety() {
   
    SafetyTester tester = new SafetyTester();
    tester.provideTests(tests); // Add our custom tests.
   
    /* Test all the unique classes passed to the framework. */
    for (Object t : tasks.getTasks()) {
      if (!threadSafeties.containsKey(t.getClass())
          || threadSafeties.get(t.getClass()) == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.