parseAndAssertNodeCount(2);
assertTrue(
"Node should be an applet tag",
node[0] instanceof AppletTag);
// Check the data in the applet tag
AppletTag appletTag = (AppletTag) node[0];
assertEquals("Class Name", "Myclass.class", appletTag.getAppletClass());
assertEquals("Archive", "test.jar", appletTag.getArchive());
assertEquals("Codebase", "www.kizna.com", appletTag.getCodeBase());
// Check the params data
int cnt = 0;
for (Enumeration e = appletTag.getParameterNames();
e.hasMoreElements();
)
{
String paramName = (String) e.nextElement();
String paramValue = appletTag.getAttribute(paramName);
assertEquals(
"Param " + cnt + " value",
paramsMap.get(paramName),
paramValue);
cnt++;