262728293031323334
* @version $Rev: 432109 $ $Date: 2006-08-16 19:01:17 -0700 (Wed, 16 Aug 2006) $ */ public class TuscanyExceptionTestCase extends TestCase { public void testIdentifier() throws Exception { TuscanyException e = new TestException(); e.setIdentifier("foo"); assertEquals("foo", e.getIdentifier()); }
3233343536373839404142
e.setIdentifier("foo"); assertEquals("foo", e.getIdentifier()); } public void testAddContext() throws Exception { TuscanyException e = new TestException(); e.addContextName("foo"); e.addContextName("bar"); assertEquals("foo", e.returnContextNames().get(0)); assertEquals("bar", e.returnContextNames().get(1)); }
4041424344454647
assertEquals("foo", e.returnContextNames().get(0)); assertEquals("bar", e.returnContextNames().get(1)); } public void testEmptyContext() throws Exception { TuscanyException e = new TestException(); assertEquals(0, e.returnContextNames().size()); }
4546474849505152
TuscanyException e = new TestException(); assertEquals(0, e.returnContextNames().size()); } public void testGetMessage() throws Exception { TuscanyException e = new TestException(); e.getMessage(); }
50515253545556575859
TuscanyException e = new TestException(); e.getMessage(); } public void testFullMessage() throws Exception { TuscanyException e = new TestException(); e.setIdentifier("foo"); e.addContextName("foo"); e.getMessage(); }