Package uk.ac.uea.threadr.tests.references

Examples of uk.ac.uea.threadr.tests.references.ReferenceTest


  public final void testProvidedTests() {
   
    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


    ParallelTask[] tasks = new ParallelTask[REFERENCE_COUNT];
    ThreadTest[] tests = new ThreadTest[REFERENCE_COUNT];
   
    for (int i = 0; i < REFERENCE_COUNT; i++) {
      tasks[i] = new ReferenceTask();
      tests[i] = new ReferenceTest();
    }
   
    instance = new Threadr(tasks, tests);
   
    assertNotNull("Failed to instantiate Threadr.", instance);
View Full Code Here

    List<ParallelTask> tasks = new ArrayList<>();
    List<ThreadTest> tests = new ArrayList<>();
   
    for (int i = 0; i < REFERENCE_COUNT; i++) {
      tasks.add(new ReferenceTask());
      tests.add(new ReferenceTest());
    }
   
    instance = new Threadr(tasks, tests);
   
    assertNotNull("Failed to instantiate Threadr.", instance);
View Full Code Here

   * returned.
   */
  @Test
  public final void testAddTest() {
   
    ThreadTest test = new ReferenceTest();

    instance = new Threadr();
    instance.addTest(test);
   
    Set<? extends ThreadTest> tests = instance.getTests();
View Full Code Here

   
    instance = new Threadr();   
    List<ThreadTest> tests = new ArrayList<>();
   
    for (int i = 0; i < REFERENCE_COUNT; i++) {
      tests.add(new ReferenceTest());
    }
    instance.addTests(tests);
   
    assertNotNull("Instance returned null tests.", instance.getTasks());
    assertEquals("Incorrect number of tests found.", REFERENCE_COUNT,
View Full Code Here

   
    instance = new Threadr();
    ThreadTest[] tests = new ThreadTest[REFERENCE_COUNT];
   
    for (int i = 0; i < REFERENCE_COUNT; i++) {
      tests[i] = new ReferenceTest();
    }
    instance.addTests(tests);
   
    assertNotNull("Instance returned null tests.", instance.getTests());
    assertEquals("Incorrect number of tests found.", REFERENCE_COUNT,
View Full Code Here

TOP

Related Classes of uk.ac.uea.threadr.tests.references.ReferenceTest

Copyright © 2018 www.massapicom. 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.