@Test public void testGenerateRecruitmentChart2() throws IllegalArgumentException, TrialStateException { randomizeInValidTrialTwoYears(); ChartData chartData = chartsService.generateRecruitmentChart(validTrial); assertEquals(24, chartData.getXLabels().size()); assertEquals(24, chartData.getData().size()); for (int i = 0; i < chartData.getData().size(); i++) { assertEquals(10.0 * (i + 1), chartData.getData().get(i)[0]); assertEquals(10.0 * (i + 1), chartData.getData().get(i)[1]); } }