@Test
  public void testGetHandle() throws Exception {
    // setup
    GCPast gcPast = mock(GCPast.class);
    when(gcPast.getEnvironment()).thenReturn(mockEnvironment);

    // act
    GCPastContentHandle contentHandle = content.getHandle(gcPast, 1234);

    // assert
    assertNotNull(contentHandle);
  }
Beispiel #2
0
 public GCPastContentHandle getHandle(GCPast local, long expiration) {
   return new AggregateHandle(local.getLocalNodeHandle(), myId, getVersion(), expiration);
 }