/** * Accuracy test for the method <code> * scheduleSpecificationReview(TCSubject tcSubject, long projectId, Date reviewStartDate)</code> . * * @throws Exception to JUnit */ public void testScheduleSpecificationReview1() throws Exception { Date date = new Date(); TCSubject sub = new TCSubject(null, 1L); try { service.scheduleSpecificationReview(sub, 1, date); } catch (Exception e) { fail("No exception should be thrown!"); } }
/** * Accuracy test for the method <code> * scheduleSpecificationReview(TCSubject tcSubject, long projectId, Date reviewStartDate)</code> . * * @throws Exception to JUnit */ public void testScheduleSpecificationReview3() throws Exception { Date date = new Date(System.currentTimeMillis() + DAY); long id = 1L; TCSubject sub = new TCSubject(null, id); service.scheduleSpecificationReview(sub, 1, date); Project project = MockPhaseManager.getPhases().get("" + id); assertNotNull(project); Phase submissionPhase = getSubmissionPhase(project); assertNotNull(submissionPhase); assertEquals(PhaseStatus.SCHEDULED, submissionPhase.getPhaseStatus()); }