From 0be190ef3ae0ad32c9324c6021704ab2dcc35978 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 4 Apr 2014 11:18:45 +0200 Subject: [PATCH] Fix unit test --- .../src/test/java/org/sonar/server/rule/RuleOperationsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/test/java/org/sonar/server/rule/RuleOperationsTest.java b/sonar-server/src/test/java/org/sonar/server/rule/RuleOperationsTest.java index 0bd6dea327f..0c6fb636888 100644 --- a/sonar-server/src/test/java/org/sonar/server/rule/RuleOperationsTest.java +++ b/sonar-server/src/test/java/org/sonar/server/rule/RuleOperationsTest.java @@ -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)); -- 2.39.5