I have a simple class that just calls the generic HTTPCallOUt method for its test class.
I want it to be able to fail in order to catch all the code. Here is my code:
Test.startTest(); Test.setMock(HttpCalloutMock.class, new ExampleCalloutMock()); // I want this to be able to fail in order to catch all the code in ClassCall ClassCall.Method(recordId); test.stopTest();
Right now it always returns Code 200 and passes the test. I want it to return anything other than code 200.