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