< prev index next >

test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DefaultAttributeTest.java

Print this page




  91                             count++;
  92                         }
  93                         Assert.assertTrue(count == 2, "Two namespaces are expected for <bookurn> ");
  94 
  95                         Iterator attributes = startElement.getAttributes();
  96                         count = 0;
  97                         while (attributes.hasNext()) {
  98                             iterator.next();
  99                             count++;
 100                         }
 101                         Assert.assertTrue(count == 0, "Zero attributes are expected for <bookurn> ");
 102                     }
 103                 }
 104             }
 105         } catch (Exception e) {
 106             e.printStackTrace();
 107             Assert.fail("Exception occured: " + e.getMessage());
 108         }
 109     }
 110 }
 111 


  91                             count++;
  92                         }
  93                         Assert.assertTrue(count == 2, "Two namespaces are expected for <bookurn> ");
  94 
  95                         Iterator attributes = startElement.getAttributes();
  96                         count = 0;
  97                         while (attributes.hasNext()) {
  98                             iterator.next();
  99                             count++;
 100                         }
 101                         Assert.assertTrue(count == 0, "Zero attributes are expected for <bookurn> ");
 102                     }
 103                 }
 104             }
 105         } catch (Exception e) {
 106             e.printStackTrace();
 107             Assert.fail("Exception occured: " + e.getMessage());
 108         }
 109     }
 110 }

< prev index next >