/** * Test method for {@link * org.gedcom4j.parser.GedcomParserException#GedcomParserException(java.lang.Throwable)} . */ @Test public void testGedcomWriterExceptionThrowable() { try { throw new GedcomParserException("Yo", new RuntimeException()); } catch (GedcomParserException e) { Assert.assertNotNull(e); Assert.assertEquals("Yo", e.getMessage()); Assert.assertNotNull(e.getCause()); } }
/** Test method for {@link org.gedcom4j.parser.GedcomParserException#GedcomParserException()} . */ @Test public void testGedcomWriterException() { try { throw new GedcomParserException(); } catch (GedcomParserException e) { Assert.assertNotNull(e); Assert.assertNull(e.getMessage()); Assert.assertNull(e.getCause()); } }