diff options
Diffstat (limited to 'sonar-server/src/test/java/org/sonar/server/ui/JRubyI18nTest.java')
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/ui/JRubyI18nTest.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sonar-server/src/test/java/org/sonar/server/ui/JRubyI18nTest.java b/sonar-server/src/test/java/org/sonar/server/ui/JRubyI18nTest.java index 1060704e119..ef26d5c0209 100644 --- a/sonar-server/src/test/java/org/sonar/server/ui/JRubyI18nTest.java +++ b/sonar-server/src/test/java/org/sonar/server/ui/JRubyI18nTest.java @@ -25,6 +25,7 @@ import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import org.sonar.api.i18n.I18n; +import org.sonar.api.utils.Duration; import org.sonar.core.i18n.GwtI18n; import java.util.Date; @@ -94,8 +95,14 @@ public class JRubyI18nTest { @Test public void format_work_duration() throws Exception { - jRubyI18n.formatWorkDuration(10L); - verify(i18n).formatWorkDuration(any(Locale.class), eq(10L)); + jRubyI18n.formatWorkDuration(Duration.create(10L)); + verify(i18n).formatWorkDuration(any(Locale.class), eq(Duration.create(10L))); + } + + @Test + public void format_long_work_duration() throws Exception { + jRubyI18n.formatLongWorkDuration(10L); + verify(i18n).formatWorkDuration(any(Locale.class), eq(Duration.create(10L))); } } |