1 6 7 package com.hp.hpl.jena.shared.test; 8 9 import com.hp.hpl.jena.test.JenaTestBase; 10 import com.hp.hpl.jena.shared.*; 11 12 import junit.framework.*; 13 14 19 public class TestJenaException extends JenaTestBase 20 { 21 public TestJenaException(String name) 22 { super(name); } 23 24 public static TestSuite suite() 25 { return new TestSuite( TestJenaException.class ); } 26 27 public void testRethrownMessage() 28 { 29 Exception e = new Exception ( "kings and queens" ); 30 JenaException j = new JenaException( e ); 31 assertTrue( j.getMessage().endsWith( e.getMessage() ) ); 32 } 33 } 34 35 36 | Popular Tags |