]> source.dussan.org Git - sonarqube.git/commitdiff
Fix unit test
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 4 Apr 2014 09:18:45 +0000 (11:18 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 4 Apr 2014 09:18:45 +0000 (11:18 +0200)
sonar-server/src/test/java/org/sonar/server/rule/RuleOperationsTest.java

index 0bd6dea327ffc2d7a5d9017788705c996a18c5fb..0c6fb636888031de42f81837ccf147e4e85c768b 100644 (file)
@@ -661,7 +661,7 @@ public class RuleOperationsTest {
         authorizedUserSession
       );
     } catch (Exception e) {
-      assertThat(e).isInstanceOf(BadRequestException.class).hasMessage("Invalid coefficient: foo");
+      assertThat(e).isInstanceOf(BadRequestException.class).hasMessage("Invalid coefficient: foo (Duration 'foo' is invalid, it should use the following sample format : 2d 10h 15min)");
     }
 
     verify(ruleDao, never()).update(any(RuleDto.class), eq(session));