Beispiel #1
0
 @Test(expected = IllegalStateException.class)
 public void validateNullISOriginator() {
   createContext(
           "value",
           PropagationMode.defaultSet(),
           ContextType.ASCII_STRING,
           (Boolean) null,
           ALLOW_ALL_TO_READ)
       .validate();
 }
Beispiel #2
0
 @Test
 public void validatel() {
   createContext(
           "value",
           PropagationMode.defaultSet(),
           ContextType.ASCII_STRING,
           IS_ORIGIN,
           ALLOW_ALL_TO_READ)
       .validate();
 }
Beispiel #3
0
 @Test(expected = IllegalStateException.class)
 public void validateNullValue() {
   createContext(
           null,
           PropagationMode.defaultSet(),
           ContextType.ASCII_STRING,
           IS_ORIGIN,
           ALLOW_ALL_TO_READ)
       .validate();
 }
Beispiel #4
0
 @Test(expected = IllegalStateException.class)
 public void validateNullContextType() {
   createContext("value", PropagationMode.defaultSet(), null, IS_ORIGIN, ALLOW_ALL_TO_READ)
       .validate();
 }
Beispiel #5
0
 @Test(expected = IllegalStateException.class)
 public void validateNullAllowAllToRead() {
   createContext("value", PropagationMode.defaultSet(), ContextType.ASCII_STRING, IS_ORIGIN, null)
       .validate();
 }