Skip to content

Commit ae16d38

Browse files
committed
added restricted JRF type to test
1 parent 7a70027 commit ae16d38

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/test/java/com/oracle/weblogic/imagetool/api/model/DomainTypeTest.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,21 @@
33
import org.junit.Test;
44

55
import static org.junit.Assert.assertEquals;
6+
import static org.junit.Assert.assertNotEquals;
67

78
public class DomainTypeTest {
89

910
@org.junit.Test
1011
public void fromValue() {
11-
assertEquals("validate domain type lowercase jrf", DomainType.JRF, DomainType.fromValue("jrf"));
12-
assertEquals("validate domain type uppercase jrf", DomainType.JRF, DomainType.fromValue("JRF"));
1312
assertEquals("validate domain type lowercase wls", DomainType.WLS, DomainType.fromValue("wls"));
1413
assertEquals("validate domain type uppercase WLS", DomainType.WLS, DomainType.fromValue("WLS"));
14+
15+
assertEquals("validate domain type lowercase jrf", DomainType.JRF, DomainType.fromValue("jrf"));
16+
assertEquals("validate domain type uppercase JRF", DomainType.JRF, DomainType.fromValue("JRF"));
17+
18+
assertEquals("validate domain type lowercase rjrf", DomainType.RestrictedJRF, DomainType.fromValue("rjrf"));
19+
assertEquals("validate domain type uppercase RJRF", DomainType.RestrictedJRF, DomainType.fromValue("RJRF"));
20+
21+
assertNotEquals("string JRF does not equal WLS type", DomainType.WLS, DomainType.fromValue("jrf"));
1522
}
1623
}

0 commit comments

Comments
 (0)