コード例 #1
0
  @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);
  }
コード例 #2
0
 public GCPastContentHandle getHandle(GCPast local, long expiration) {
   return new AggregateHandle(local.getLocalNodeHandle(), myId, getVersion(), expiration);
 }