Package org.apache.tuscany.api

Examples of org.apache.tuscany.api.TuscanyRuntimeException


* @version $Rev: 432109 $ $Date: 2006-08-16 19:01:17 -0700 (Wed, 16 Aug 2006) $
*/
public class TuscanyRuntimeExceptionTestCase extends TestCase {

    public void testIdentifier() throws Exception {
        TuscanyRuntimeException e = new TestException();
        e.setIdentifier("foo");
        assertEquals("foo", e.getIdentifier());
    }
View Full Code Here


        e.setIdentifier("foo");
        assertEquals("foo", e.getIdentifier());
    }

    public void testAddContext() throws Exception {
        TuscanyRuntimeException e = new TestException();
        e.addContextName("foo");
        e.addContextName("bar");
        assertEquals("foo", e.returnContextNames().get(0));
        assertEquals("bar", e.returnContextNames().get(1));
    }
View Full Code Here

        assertEquals("foo", e.returnContextNames().get(0));
        assertEquals("bar", e.returnContextNames().get(1));
    }

    public void testEmptyContext() throws Exception {
        TuscanyRuntimeException e = new TestException();
        assertEquals(0, e.returnContextNames().size());
    }
View Full Code Here

        TuscanyRuntimeException e = new TestException();
        assertEquals(0, e.returnContextNames().size());
    }

    public void testEmptyGetMessage() throws Exception {
        TuscanyRuntimeException e = new TestException();
        e.getMessage();
    }
View Full Code Here

        TuscanyRuntimeException e = new TestException();
        e.getMessage();
    }

    public void testFullMessage() throws Exception {
        TuscanyRuntimeException e = new TestException();
        e.setIdentifier("foo");
        e.addContextName("foo");
        e.getMessage();
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.api.TuscanyRuntimeException

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.