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