Exemplo n.º 1
0
  @Test
  public void testContinuousToString() {
    ResourceId resource = Resources.continuous(D1, P1, Bandwidth.class).id();

    assertThat(
        resource.toString(), is(Arrays.asList(D1, P1, Bandwidth.class.getSimpleName()).toString()));
  }
Exemplo n.º 2
0
 @Test(expected = IllegalArgumentException.class)
 public void testInitWithNonClassInstance() {
   Resources.continuous(D1, P1, BW1).id();
 }