]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3972 Update unit test
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 15:10:24 +0000 (16:10 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 15:11:04 +0000 (16:11 +0100)
plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/GlobalDefaultDashboardTest.java

index 40d9869ff9ba1d25a5daa1ca1d95d78708ec35a5..2081d92c49986a994da5304152605263489c7d20 100644 (file)
@@ -50,7 +50,7 @@ public class GlobalDefaultDashboardTest {
 
   @Test
   public void should_have_a_name() {
-    assertThat(template.getName()).isEqualTo("Projects");
+    assertThat(template.getName()).isEqualTo("Home");
   }
 
   @Test
@@ -61,11 +61,11 @@ public class GlobalDefaultDashboardTest {
   @Test
   public void should_create_global_dashboard_with_four_widgets() {
     when(dao.findSystemFilterByName(MyFavouritesFilter.NAME)).thenReturn(
-      new MeasureFilterDto().setId(100L)
-    );
+        new MeasureFilterDto().setId(100L)
+        );
     when(dao.findSystemFilterByName(ProjectFilter.NAME)).thenReturn(
-      new MeasureFilterDto().setId(101L)
-    );
+        new MeasureFilterDto().setId(101L)
+        );
     Dashboard dashboard = template.createDashboard();
     List<Widget> firstColumn = dashboard.getWidgetsOfColumn(1);
     assertThat(firstColumn).hasSize(2);