コード例 #1
0
ファイル: ImgTagTest.java プロジェクト: tomason/anadix
  public void testGetHeight3() {
    Properties p = new Properties();
    String h = "50px;";
    p.setProperty("height", h);
    Attributes a = new Attributes(p);

    ImgTag it = new ImgTag(id, parent, a);
    assertEquals(it.getHeight(), h);
  }
コード例 #2
0
ファイル: ImgTagTest.java プロジェクト: tomason/anadix
 public void testGetHeight2() {
   ImgTag it = new ImgTag(id, parent, attributes);
   assertEquals(it.getHeight(), height);
 }
コード例 #3
0
ファイル: ImgTagTest.java プロジェクト: tomason/anadix
 public void testGetHeight1() {
   ImgTag it = new ImgTag(id, parent, new Attributes(new Properties()));
   assertNull(it.getHeight());
 }