Package org.gedcom4j.io

Examples of org.gedcom4j.io.UnsupportedGedcomCharsetException


     * Test throwing the exception with cause and message
     */
    @Test
    public void testCauseAndMessage() {
        try {
            throw new UnsupportedGedcomCharsetException("Foo", new Exception(
                    "Foo"));
        } catch (UnsupportedGedcomCharsetException e) {
            assertNotNull(e);
            assertEquals("Foo", e.getMessage());
            assertNotNull(e.getCause());
View Full Code Here


     * Test throwing the exception with just a cause
     */
    @Test
    public void testJustCause() {
        try {
            throw new UnsupportedGedcomCharsetException(new Exception("Foo"));
        } catch (UnsupportedGedcomCharsetException e) {
            assertNotNull(e);
            assertEquals("java.lang.Exception: Foo", e.getMessage());
            assertNotNull(e.getCause());
        }
View Full Code Here

     * Test throwing the exception with just message
     */
    @Test
    public void testJustMessage() {
        try {
            throw new UnsupportedGedcomCharsetException("Foo");
        } catch (UnsupportedGedcomCharsetException e) {
            assertNotNull(e);
            assertEquals("Foo", e.getMessage());
            assertNull(e.getCause());
        }
View Full Code Here

     * Test throwing the exception with no parms
     */
    @Test
    public void testNoParms() {
        try {
            throw new UnsupportedGedcomCharsetException();
        } catch (UnsupportedGedcomCharsetException e) {
            assertNotNull(e);
            assertNull(e.getMessage());
            assertNull(e.getCause());
        }
View Full Code Here

TOP

Related Classes of org.gedcom4j.io.UnsupportedGedcomCharsetException

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.