* does not support a start action, the test case is expected to catch the error and verify
* the error message.
* @throws Exception
*/
public void testStartForErrorCode() throws Exception {
@SuppressWarnings("serial")
V1JobServlet testV1JobServlet = new V1JobServlet() {
@Override
protected String getResourceName(HttpServletRequest request) {
return "-C";
}
};
try {
testV1JobServlet.startJob(null, null);
// should not get here!
fail("Negative test to test an exception. Should not be succeeding!");
} catch (XServletException xse) {
// check for the error code and the message
assertEquals(xse.getErrorCode(), ErrorCode.E0303);