예제 #1
0
 @Test
 public void testSetAttribute() {
   Attr attribute = new Attr(attributes, "rankdir");
   attributes.set("rankdir", attribute);
   assertEquals(1, attributes.total());
   assertEquals(attributes.get("rankdir"), attribute);
 }
예제 #2
0
  @Test
  public void testGet() {

    Attr attr = attributes.get("rankdir");
    assertEquals("rankdir", attr.name());
    assertEquals(null, attr.value());
  }
예제 #3
0
 @Test
 public void testGetWithValue() {
   attributes.get("rankdir").value("#999");
   Attr attr = attributes.get("rankdir");
   assertEquals("#999", attr.value().toString());
 }