コード例 #1
0
  @Test
  public void getSmallRedToyDescription() {

    String description = client.getSmallRedToyDescription(new CarToy());

    Assert.assertEquals("name: Car | color: red | size: small | ", description);
  }
コード例 #2
0
  @Test
  public void getBigBlueToyDescription() {

    String description = client.getBigBlueToyDescription(new BearToy());

    Assert.assertEquals("name: Bear | color: blue | size: big | ", description);
  }