Completed Tests for class LocalizedPriority.
package io.jenkins.plugins.analysis.core.views;
-
import edu.hm.hafner.analysis.Priority;
import org.junit.jupiter.api.Test;
import static edu.hm.hafner.analysis.assertj.Assertions.*;
@@ -18,4 +17,45 @@ class LocalizedPriorityTest {
assertThat(actualResult).contains("Hoch");
assertThat(actualResult).inUnicode();
}
+
+ @Test
+ void priorityIsHighLong() {
+ String actualResult = LocalizedPriority.getLongLocalizedString(Priority.HIGH);
+ assertThat(actualResult).isNotEmpty();
+ assertThat(actualResult).contains("Hohe Prioritt");
+ assertThat(actualResult).inUnicode();
+ }
+
+ @Test
+ void priorityIsLow() {
+ String actualResult = LocalizedPriority.getLocalizedString(Priority.LOW);
+ assertThat(actualResult).isNotEmpty();
+ assertThat(actualResult).contains("Niedrig");
+ assertThat(actualResult).inUnicode();
+ }
+
+ @Test
+ void priorityIsLowLong() {
+ String actualResult = LocalizedPriority.getLongLocalizedString(Priority.LOW);
+ assertThat(actualResult).isNotEmpty();
+ assertThat(actualResult).contains("Niedrige Prioritt");
+ assertThat(actualResult).inUnicode();
+ }
+
+ @Test
+ void priorityIsNormal() {
+ String actualResult = LocalizedPriority.getLocalizedString(Priority.NORMAL);
+ assertThat(actualResult).isNotEmpty();
+ assertThat(actualResult).contains("Normal");
+ assertThat(actualResult).inUnicode();
+ }
+
+ @Test
+ void priorityIsNormalLong() {
+ String actualResult = LocalizedPriority.getLongLocalizedString(Priority.NORMAL);
+ assertThat(actualResult).isNotEmpty();
+ assertThat(actualResult).contains("Normale Prioritt");
+ assertThat(actualResult).inUnicode();
+ }
+
}
\ No newline at end of file
