366 if (eventType == XMLStreamConstants.PROCESSING_INSTRUCTION) {
367 String target = delegate.getPITarget();
368 String data = delegate.getPIData();
369 Assert.assertTrue(target.equals(PITarget));
370 Assert.assertTrue(data.equals(PIData));
371 }
372 }
373 } catch (Exception ex) {
374 ex.printStackTrace();
375 Assert.fail("Exception in testPITargetAndData()");
376 } finally {
377 try {
378 delegate.close();
379 } catch (XMLStreamException e) {
380 e.printStackTrace();
381 Assert.fail("XMLStreamException in testPITargetAndData()");
382 }
383 }
384 }
385 }
386
|
366 if (eventType == XMLStreamConstants.PROCESSING_INSTRUCTION) {
367 String target = delegate.getPITarget();
368 String data = delegate.getPIData();
369 Assert.assertTrue(target.equals(PITarget));
370 Assert.assertTrue(data.equals(PIData));
371 }
372 }
373 } catch (Exception ex) {
374 ex.printStackTrace();
375 Assert.fail("Exception in testPITargetAndData()");
376 } finally {
377 try {
378 delegate.close();
379 } catch (XMLStreamException e) {
380 e.printStackTrace();
381 Assert.fail("XMLStreamException in testPITargetAndData()");
382 }
383 }
384 }
385 }
|