We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2428fb commit dc611f6Copy full SHA for dc611f6
1 file changed
src/test/java/com/devopsdemo/utilities/TestGenericResourceBundle.java
@@ -1,15 +1,15 @@
1
2
package com.devopsdemo.utilities;
3
-import com.devopsdemo.helper.GenericResourceBundle;
4
-
5
-import org.junit.jupiter.api.Test;
+ assertThrows(IllegalArgumentException.class, () -> {
+ GenericResourceBundle.getBundle(null);
+ });
6
import java.util.Locale;
7
import static org.junit.jupiter.api.Assertions.*;
8
9
class TestGenericResourceBundle {
10
11
- @Test
12
- void testGetBundle() {
+ GenericResourceBundle.getBundle("nonexistent");
13
Locale locale = new Locale("en", "US");
14
assertNotNull(GenericResourceBundle.getBundle("messages", locale));
15
}
0 commit comments