Examples of ReferenceReturnType


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

   */
  @Test
  public final void testAddResult() {
   
    assertNull("Failed to add result to stored task.",
        result.addResult(tasks[0], new ReferenceReturnType()));
    assertNotNull("Existing result not returned.",
        result.addResult(tasks[0], new ReferenceReturnType()));
  }
View Full Code Here

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

   */
  @Test
  public final void testRemoveResult() {

    result.addTask(tasks[0]);
    result.addResult(tasks[0], new ReferenceReturnType());
    assertNotNull("Result not returned.", result.removeResult(tasks[0]));
    assertNull("Unstored task returned result.",
        result.removeResult(tasks[1]));
  }
View Full Code Here

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

   */
  @Test
  public final void testCombineThreadrResult() {
   
    ThreadrResult other = new ThreadrResult();
    ReferenceReturnType ref = new ReferenceReturnType();
    ReferenceReturnType conflict = new ReferenceReturnType();   
   
    result.addTask(tasks[0]);
    result.addResult(tasks[0], ref);
   
    other.addTask(tasks[0]);
    other.addTask(tasks[1]);
    other.addResult(tasks[0], conflict);
    other.addResult(tasks[1], new ReferenceReturnType());
   
    result.combine(other);
    assertNotNull("Result became null", result);
    assertEquals("Incorrect number of tasks stored.", 2, result.size());
   
View Full Code Here

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

   */
  @Test
  public final void testCombineThreadrResultNoOverwrite() {
   
    ThreadrResult other = new ThreadrResult();
    ReferenceReturnType ref = new ReferenceReturnType();
    ReferenceReturnType conflict = new ReferenceReturnType();   
   
    result.addTask(tasks[0]);
    result.addResult(tasks[0], ref);
   
    other.addTask(tasks[0]);
    other.addTask(tasks[1]);
    other.addResult(tasks[0], conflict);
    other.addResult(tasks[1], new ReferenceReturnType());
   
    result.combine(other, false);
    assertNotNull("Result became null", result);
    assertEquals("Incorrect number of tasks stored.", 2, result.size());
   
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.