From ea1ac3789b9128e394284d82dfeaeab32dd441d8 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 25 Sep 2014 23:41:41 +0200 Subject: SONAR-4898 add missing tests --- sonar-application/pom.xml | 14 ++------------ .../java/org/sonar/application/DefaultSettingsTest.java | 6 ++++++ 2 files changed, 8 insertions(+), 12 deletions(-) (limited to 'sonar-application') diff --git a/sonar-application/pom.xml b/sonar-application/pom.xml index ee68ed3ce4a..26844b97f93 100644 --- a/sonar-application/pom.xml +++ b/sonar-application/pom.xml @@ -155,18 +155,8 @@ - junit - junit - test - - - org.hamcrest - hamcrest-all - test - - - org.easytesting - fest-assert + org.codehaus.sonar + sonar-testing-harness test diff --git a/sonar-application/src/test/java/org/sonar/application/DefaultSettingsTest.java b/sonar-application/src/test/java/org/sonar/application/DefaultSettingsTest.java index 11bcb2f5631..49a66bc590c 100644 --- a/sonar-application/src/test/java/org/sonar/application/DefaultSettingsTest.java +++ b/sonar-application/src/test/java/org/sonar/application/DefaultSettingsTest.java @@ -21,6 +21,7 @@ package org.sonar.application; import org.junit.Test; import org.sonar.process.Props; +import org.sonar.test.TestUtils; import java.util.Properties; @@ -56,4 +57,9 @@ public class DefaultSettingsTest { DefaultSettings.init(props); assertThat(props.valueAsInt("sonar.search.port")).isGreaterThan(0); } + + @Test + public void private_constructor() throws Exception { + TestUtils.assertPrivateConstructor(DefaultSettings.class); + } } -- cgit v1.2.3