コード例 #1
0
  @Test
  public void gettingXMLTest() {
    String name = "name";
    String value = "value";

    attribute.setName(name);
    attribute.setValue(value);

    assertEquals(name + "=\"" + value + "\"", attribute.toXML());
  }
コード例 #2
0
  @Test
  public void gettingAndSettingFieldsTest() {
    String name = "name";
    String value = "value";

    attribute.setName(name);
    attribute.setValue(value);

    assertEquals(name, attribute.getName());
    assertEquals(value, attribute.getValue());
  }