コード例 #1
0
  @Test
  public void getPropertyCount_shouldReturnTwo() throws Exception {
    pb.addProperty("test", "42");
    pb.addProperty("number", 42);

    assertTrue(pb.propertyCount() == 2);
  }
コード例 #2
0
  @Test
  public void removeAllProperties_shouldDeleteEverything() throws Exception {
    pb.addProperty("test", "42");
    pb.addProperty("number", 42);

    pb.removeAllProperties();
    assertTrue(pb.propertyCount() == 0);
  }