Package org.gedcom4j.parser

Examples of org.gedcom4j.parser.GedcomParserException


     * .
     */
    @Test
    public void testGedcomWriterException() {
        try {
            throw new GedcomParserException();
        } catch (GedcomParserException e) {
            Assert.assertNotNull(e);
            Assert.assertNull(e.getMessage());
            Assert.assertNull(e.getCause());
        }
View Full Code Here


     * .
     */
    @Test
    public void testGedcomWriterExceptionString() {
        try {
            throw new GedcomParserException("Yo");
        } catch (GedcomParserException e) {
            Assert.assertNotNull(e);
            Assert.assertEquals("Yo", e.getMessage());
            Assert.assertNull(e.getCause());
        }
View Full Code Here

     * .
     */
    @Test
    public void testGedcomWriterExceptionStringThrowable() {
        try {
            throw new GedcomParserException(new RuntimeException());
        } catch (GedcomParserException e) {
            Assert.assertNotNull(e);
            Assert.assertEquals("java.lang.RuntimeException", e.getMessage());
            Assert.assertNotNull(e.getCause());
        }
View Full Code Here

     * .
     */
    @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());
        }
View Full Code Here

TOP

Related Classes of org.gedcom4j.parser.GedcomParserException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.