4142434445464748495051
public void testNull() { ObjectTranslator t = new ObjectTranslator(); assertNull(t.translate(null, null, null)); } public void testBadClass() throws Exception { ObjectTranslator t = new ObjectTranslator();
6162636465666768697071
replayControls(); try { t.translate(m, null, "bad.class.Name"); } catch (ApplicationRuntimeException ex) { assertExceptionSubstring(ex, "Could not load class bad.class.Name"); }
8889909192939495969798
replayControls(); try { t.translate(m, null, PrivateObject.class.getName()); unreachable(); } catch (ApplicationRuntimeException ex) { assertExceptionSubstring(