Search in sources :

Example 6 with NotNull

use of com.adaptris.core.services.conditional.operator.NotNull in project interlok by adaptris.

the class ConditionPayloadTest method testPayloadExists.

@Test
public void testPayloadExists() throws Exception {
    condition.setOperator(new NotNull());
    message.setContent("some content", message.getContentEncoding());
    assertTrue(condition.evaluate(message));
}
Also used : NotNull(com.adaptris.core.services.conditional.operator.NotNull) Test(org.junit.Test)

Aggregations

NotNull (com.adaptris.core.services.conditional.operator.NotNull)6 LogMessageService (com.adaptris.core.services.LogMessageService)3 ConditionMetadata (com.adaptris.core.services.conditional.conditions.ConditionMetadata)3 ConditionOr (com.adaptris.core.services.conditional.conditions.ConditionOr)3 IsNull (com.adaptris.core.services.conditional.operator.IsNull)2 Test (org.junit.Test)2 CoreException (com.adaptris.core.CoreException)1 ServiceException (com.adaptris.core.ServiceException)1 ConditionAnd (com.adaptris.core.services.conditional.conditions.ConditionAnd)1 ConditionExpression (com.adaptris.core.services.conditional.conditions.ConditionExpression)1 ConditionFunction (com.adaptris.core.services.conditional.conditions.ConditionFunction)1 Equals (com.adaptris.core.services.conditional.operator.Equals)1 Before (org.junit.Before)1