コード例 #1
0
 public void testPutResourceForExceptionTx() {
   tsr.putResource("hoge", "foo");
   try {
     tsr.putResource(null, "foo");
     fail();
   } catch (NullPointerException ignore) {
   }
 }
コード例 #2
0
 public void testPutResourceForException() {
   try {
     tsr.putResource("hoge", "foo");
     fail();
   } catch (IllegalStateException ignore) {
   }
 }
コード例 #3
0
 /** @throws Exception */
 public void testGetResourceTx() throws Exception {
   assertNull(tsr.getResource("hoge"));
   tsr.putResource("hoge", "foo");
   assertEquals("foo", tsr.getResource("hoge"));
 }