deployExpectingException(FILE_BASE + "testBadCargoClass.sf", "testBadCargoClass", EXCEPTION_LIFECYCLE, "", EXCEPTION_SMARTFROG, "Cannot find org.codehaus.cargo.container.badConfigurationClass");
Prim app = deployExpectingSuccess(FILE_BASE + "testBadCargoClass.sf", "testBadCargoClass"); long timeout = System.currentTimeMillis()+TIMEOUT_FOR_STARTUP *1000; try { do { app.sfPing(null); } while(System.currentTimeMillis()<timeout); } catch (SmartFrogLivenessException e) { assertFaultCauseAndTextContains(e, EXCEPTION_LIFECYCLE,null,null); assertFaultCauseAndTextContains(e.getCause(), EXCEPTION_SMARTFROG, "Cannot find org.codehaus.cargo.container.badConfigurationClass", ""); } catch (java.rmi.NoSuchObjectException terminated) {  }
    public void testBadCargoClass() throws Throwable {        deployExpectingException(FILE_BASE + "testBadCargoClass.sf",                "testBadCargoClass",                EXCEPTION_LIFECYCLE,                "",                EXCEPTION_SMARTFROG,                "Cannot find org.codehaus.cargo.container.badConfigurationClass");    }