141142143144145146147148149150
engine.getJob(jobId).getStatus(); fail("Job should be purged. Should fail."); } catch (Exception ex) { assertEquals(ex.getClass(), DagEngineException.class); DagEngineException dex = (DagEngineException) ex; assertEquals(ErrorCode.E0604, dex.getErrorCode()); } }
138139140141142143144145146147
150151152153154155156
throws DagEngineException { if (actionId.equals("ok") && externalStatus.equals("ok")) { properties = actionData; return; } throw new DagEngineException(ErrorCode.ETEST, actionId); }
201202203204205206207208209210211212213214
jobId = jobId.replace(JOB_ID, ""); } idx = Integer.parseInt(jobId); } catch (Exception e) { throw new DagEngineException(ErrorCode.ETEST, jobId); } if (idx >= workflows.size()) { throw new DagEngineException(ErrorCode.ETEST, jobId); } return idx; }
146147148149150151152153154155
165166167168169170171
228229230231232233234235236237238239240241
128129130131132133134135136137
+ engine.getJob(jobId).toString()); assertTrue(false); } catch (Exception ex) { assertEquals(ex.getClass(), DagEngineException.class); DagEngineException dex = (DagEngineException) ex; assertEquals(ErrorCode.E0604, dex.getErrorCode()); } }
144145146147148149150151152153
158159160161162163164