Package org.gedcom4j.validate

Examples of org.gedcom4j.validate.GedcomValidationException


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


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

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

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

TOP

Related Classes of org.gedcom4j.validate.GedcomValidationException

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.