Author: echatellier Date: 2012-01-04 10:16:37 +0100 (Wed, 04 Jan 2012) New Revision: 939 Url: http://forge.codelutin.com/repositories/revision/coser/939 Log: Mark method as test and fix test. Modified: trunk/coser-business/src/test/java/fr/ifremer/coser/services/ProjectServiceTest.java Modified: trunk/coser-business/src/test/java/fr/ifremer/coser/services/ProjectServiceTest.java =================================================================== --- trunk/coser-business/src/test/java/fr/ifremer/coser/services/ProjectServiceTest.java 2012-01-03 16:05:59 UTC (rev 938) +++ trunk/coser-business/src/test/java/fr/ifremer/coser/services/ProjectServiceTest.java 2012-01-04 09:16:37 UTC (rev 939) @@ -122,7 +122,7 @@ Selection selection = projectValidated.getSelections().get("testselection1"); Assert.assertNotNull(selection); projectService.loadSelectionData(projectValidated, selection); - Assert.assertEquals(1, selection.getHistoryCommand().size()); // un merge + Assert.assertEquals(1, selection.getHistoryCommands().size()); // un merge Assert.assertEquals("Test selectedSpeciesOccDensComment", selection.getSelectedSpeciesOccDensComment()); Assert.assertEquals(3.5, selection.getDensityFilter(), 0); @@ -492,10 +492,12 @@ * * @throws CoserBusinessException */ + @Test public void testGetStrataHaulCoordinate() throws CoserBusinessException { Project projectValidated = openTestProject(projectService, "projectctrvalidated"); Selection selection = projectValidated.getSelections().get("testselection1"); - + projectService.loadSelectionData(projectValidated, selection); + List<Coordinate> coordinates = projectService.getStrataHaulCoordinate(selection, Collections.EMPTY_LIST); Assert.assertTrue(coordinates.isEmpty()); coordinates = projectService.getStrataHaulCoordinate(selection, Collections.singleton("STR1")); @@ -527,7 +529,7 @@ public void testOpenSelection() throws CoserBusinessException { Selection selection = projectService.openSelection("projectctrvalidated", "testselection1"); - Assert.assertEquals(1, selection.getHistoryCommand().size()); + Assert.assertEquals(1, selection.getHistoryCommands().size()); Assert.assertNull(selection.getCatch()); Assert.assertEquals(3.5, selection.getDensityFilter(), 0.0001); }