public void testPutResourceForExceptionTx() { tsr.putResource("hoge", "foo"); try { tsr.putResource(null, "foo"); fail(); } catch (NullPointerException ignore) { } }
public void testPutResourceForException() { try { tsr.putResource("hoge", "foo"); fail(); } catch (IllegalStateException ignore) { } }
/** @throws Exception */ public void testGetResourceTx() throws Exception { assertNull(tsr.getResource("hoge")); tsr.putResource("hoge", "foo"); assertEquals("foo", tsr.getResource("hoge")); }