Package pt.ul.armus.edgebuffer

Examples of pt.ul.armus.edgebuffer.TaskHandle


    }
  }

  @Test
  public void ensureRegisteredOk() {
    TaskHandle handle = mock(TaskHandle.class);
    ResourceManager m = new ResourceManager(handle);
    m.register(synch, 0);
    m.ensureRegistered(synch);
  }
View Full Code Here


    m.ensureRegistered(synch);
  }

  @Test
  public void ensureRegisteredFail() {
    TaskHandle handle = mock(TaskHandle.class);
    ResourceManager m = new ResourceManager(handle);
    try {
      m.ensureRegistered(synch);
      fail("should throw an excaption");
    } catch (IllegalStateException e) {
View Full Code Here

    }
  }

  @Test
  public void testClear() {
    TaskHandle handle = mock(TaskHandle.class);
    ResourceManager m = new ResourceManager(handle);
    m.register(synch, 0);
    m.clear();
    assertFalse(m.isRegistered(synch));
  }
View Full Code Here

TOP

Related Classes of pt.ul.armus.edgebuffer.TaskHandle

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.