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
  public void testDiscreteToString() {
    ResourceId resource = Resources.discrete(D1, P1).id();

    assertThat(resource.toString(), is(Arrays.asList(D1, P1).toString()));
  }