-/* TestCase.java --
- Copyright (C) 2005 Free Software Foundation, Inc.
+/* DomHTMLEmbedElement.java --
+ Copyright (C) 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
exception statement from your version. */
-package test.gnu.javax.swing.text.html.parser;
+package gnu.xml.dom.html2;
-
-/**
- * @author Audrius Meskauskas (AudriusA@Bioinformatics.org)
- */
-public class TestCase
+public class DomHTMLEmbedElement
+ extends DomHTMLAppletElement
{
- public TestCase()
+ protected DomHTMLEmbedElement(DomHTMLDocument owner, String namespaceURI,
+ String name)
{
- try
- {
- setUp();
- }
- catch (Exception ex)
- {
- throw new RuntimeException(ex);
- }
+ super(owner, namespaceURI, name);
}
-
- public void assertEquals(String msg, Object a, Object b)
+
+ public String getJavaObject()
{
- if (a == b)
- return;
- if (!a.equals(b))
- throw new RuntimeException(msg);
+ return getHTMLAttribute("java_object");
}
- public void assertEquals(Object a, Object b)
+ public void setJavaObject(String object)
{
- if (a == b)
- return;
- if (!a.equals(b))
- throw new RuntimeException("Objects must be equal");
+ setHTMLAttribute("java_object", object);
}
-
- public void assertEquals(int a, int b)
+
+ public String getJavaCodeBase()
{
- if (a != b)
- throw new RuntimeException(a + "!=" + b);
+ return getHTMLAttribute("java_codebase");
}
- public void assertEquals(String msg, int a, int b)
+ public void setJavaCodeBase(String codeBase)
{
- if (a != b)
- throw new RuntimeException(msg + ":" + a + "!=" + b);
+ setHTMLAttribute("java_codebase", codeBase);
}
-
- public void assertEquals(boolean a, boolean b)
+
+ public String getJavaArchive()
{
- if (a != b)
- throw new RuntimeException(a + "!=" + b);
+ return getHTMLAttribute("java_archive");
}
- public void assertFalse(String msg, boolean a)
+ public void setJavaArchive(String archive)
{
- if (a)
- throw new RuntimeException(msg);
+ setHTMLAttribute("java_archive", archive);
}
- public void assertFalse(boolean a)
+ public void setJavaCode(String code)
{
- if (a)
- throw new RuntimeException("Must be false");
+ setHTMLAttribute("java_code", code);
}
-
- public void assertNotNull(String msg, Object a)
+
+ public String getJavaCode()
{
- if (a == null)
- throw new RuntimeException(msg);
+ return getHTMLAttribute("java_code");
}
-
- public void assertNull(String msg, Object a)
+
+ public void setJavaType(String type)
{
- if (a != null)
- throw new RuntimeException(msg);
+ setHTMLAttribute("java_type", type);
}
-
- public void assertTrue(String msg, boolean a)
+
+ public String getJavaType()
{
- if (!a)
- throw new RuntimeException(msg);
+ return getHTMLAttribute("java_type");
}
-
- public void assertTrue(boolean a)
+
+ public void setType(String type)
{
- if (!a)
- throw new RuntimeException("Must be true");
+ setHTMLAttribute("type", type);
}
-
- protected void setUp()
- throws Exception
+
+ public String getType()
+ {
+ return getHTMLAttribute("type");
+ }
+
+ public String getPluginsPage()
+ {
+ return getHTMLAttribute("pluginspage");
+ }
+
+ public void setPluginsPage(String pluginspage)
+ {
+ setHTMLAttribute("pluginspage", pluginspage);
+ }
+
+ public String getMayscript()
{
+ return getHTMLAttribute("mayscript");
}
- protected void tearDown()
- throws Exception
+ public void setMayscript(String mayscript)
{
+ setHTMLAttribute("mayscript", mayscript);
}
}