public Expectations goodAppExpectations ( String theUrl , String appClass ) throws Exception { Expectations expectations = new Expectations ( ) ; expectations . addExpectations ( CommonExpectations . successfullyReachedUrl ( theUrl ) ) ; expectations . addExpectation ( new ResponseFullExpectation ( MpJwtFatConstants . STRING_CONTAINS , appClass , "Did not invoke the app " + appClass + "." ) ) ; return expectations ; }
Set good app check expectations - sets checks for good status code and for a message indicating what if any app class was invoked successfully