Esempio n. 1
0
 @Test(expected = Exception.class)
 public void testThrowExceptionAction() throws Exception {
   testInterface.throwExceptionAction();
   String str = getStringFromXml();
   assertEquals(
       str,
       "class=\"ru.fizteh.fivt.students.dzvonarev.filemap.ProxyTestImplement\""
           + " name=\"throwExceptionAction\"><arguments/>"
           + "<thrown>java.lang.Exception: exception throw success</thrown>");
 }