Package pt.ul.armus.edgebuffer

Examples of pt.ul.armus.edgebuffer.EdgeBuffer


  }
 
  @Test
  public void testThreadIsRegisteredBeginTask() throws InstantiationException, IllegalAccessException {
    TaskHandle task = mock(TaskHandle.class);
    EdgeBuffer buffer = mock(EdgeBuffer.class);
    when(strat.getBuffer()).thenReturn(buffer);
    when(buffer.createHandle()).thenReturn(task);
   
    ver.beforeTask();
    assertTrue(ver.isRegistered(Thread.currentThread()));
    ver.afterTask();
    assertTrue(ver.isRegistered(Thread.currentThread()));
View Full Code Here


  }

  @Test
  public void threadRegisteredPhase1() throws InstantiationException, IllegalAccessException {
    TaskHandle task = mock(TaskHandle.class);
    EdgeBuffer buffer = mock(EdgeBuffer.class);
    when(strat.getBuffer()).thenReturn(buffer);
    when(buffer.createHandle()).thenReturn(task);
    assertEquals(1, ver.getPhase(Thread.currentThread()));
  }
View Full Code Here

  }

  @Test
  public void ensureThreadIsRegistered() throws InstantiationException, IllegalAccessException {
    TaskHandle task = mock(TaskHandle.class);
    EdgeBuffer buffer = mock(EdgeBuffer.class);
    when(strat.getBuffer()).thenReturn(buffer);
    when(buffer.createHandle()).thenReturn(task);
    ver.ensureRegistered(Thread.currentThread());
  }
View Full Code Here

  }

  @Test
  public void testThreadIsRegistered() throws InstantiationException, IllegalAccessException {
    TaskHandle task = mock(TaskHandle.class);
    EdgeBuffer buffer = mock(EdgeBuffer.class);
    when(strat.getBuffer()).thenReturn(buffer);
    when(buffer.createHandle()).thenReturn(task);
    assertTrue(ver.isRegistered(Thread.currentThread()));
  }
View Full Code Here

TOP

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

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.