Exemplo n.º 1
0
 @Test(expected = NullPointerException.class)
 public void testCharactersThrowsNullPointerException() throws Throwable {
   char[] buf = new char[1];
   XMLTopicFactory xMLTopicFactory =
       new XMLTopicFactory(
           "testXMLTopicFactoryVirtualWiki", new WikiUser(), "testXMLTopicFactoryAuthorIpAddress");
   xMLTopicFactory.characters(buf, 100, 1000);
 }
Exemplo n.º 2
0
 @Test(expected = NullPointerException.class)
 public void testEndElementThrowsNullPointerException1() throws Throwable {
   XMLTopicFactory xMLTopicFactory =
       new XMLTopicFactory(
           "testXMLTopicFactoryVirtualWiki", new WikiUser(), "testXMLTopicFactoryAuthorIpAddress");
   xMLTopicFactory.endElement(
       "testXMLTopicFactoryNamespaceURI", "testXMLTopicFactorySName", "title");
 }
Exemplo n.º 3
0
 @Test(expected = NullPointerException.class)
 public void testStartElementThrowsNullPointerException() throws Throwable {
   XMLTopicFactory xMLTopicFactory =
       new XMLTopicFactory(
           "testXMLTopicFactoryVirtualWiki",
           new WikiUser(""),
           "testXMLTopicFactoryAuthorIpAddress");
   xMLTopicFactory.startElement(
       "testXMLTopicFactoryNamespaceURI",
       "testXMLTopicFactoryLName",
       "testXMLTopicFactoryQName",
       null);
 }