use of com.helger.phase4.ebms3header.Ebms3MessageInfo in project phase4 by phax.
the class PeppolCompatibilityValidatorTest method testValidateSignalMessageNoMessageID.
@Test
public void testValidateSignalMessageNoMessageID() {
final Ebms3SignalMessage aSignalMessage = new Ebms3SignalMessage();
aSignalMessage.setMessageInfo(new Ebms3MessageInfo());
VALIDATOR.validateSignalMessage(aSignalMessage, m_aErrorList);
assertTrue(m_aErrorList.containsAny(x -> x.getErrorText(LOCALE).contains("MessageID is missing")));
}
use of com.helger.phase4.ebms3header.Ebms3MessageInfo in project phase4 by phax.
the class PeppolCompatibilityValidatorTest method testValidateUserMessageNoMessageID.
@Test
public void testValidateUserMessageNoMessageID() {
final Ebms3UserMessage aUserMessage = new Ebms3UserMessage();
aUserMessage.setMessageInfo(new Ebms3MessageInfo());
VALIDATOR.validateUserMessage(aUserMessage, m_aErrorList);
assertTrue(m_aErrorList.containsAny(x -> x.getErrorText(LOCALE).contains("MessageInfo/MessageId is missing")));
}
use of com.helger.phase4.ebms3header.Ebms3MessageInfo in project phase4 by phax.
the class CEFCompatibilityValidatorTest method testValidateSignalMessageNoMessageID.
@Test
public void testValidateSignalMessageNoMessageID() {
final Ebms3SignalMessage aSignalMessage = new Ebms3SignalMessage();
aSignalMessage.setMessageInfo(new Ebms3MessageInfo());
VALIDATOR.validateSignalMessage(aSignalMessage, m_aErrorList);
assertTrue(m_aErrorList.containsAny(x -> x.getErrorText(LOCALE).contains("MessageID is missing")));
}
use of com.helger.phase4.ebms3header.Ebms3MessageInfo in project phase4 by phax.
the class CEFCompatibilityValidatorTwoWayFuncTest method testValidateUserMessageNoMessageID.
@Test
public void testValidateUserMessageNoMessageID() {
final Ebms3UserMessage aUserMessage = new Ebms3UserMessage();
aUserMessage.setMessageInfo(new Ebms3MessageInfo());
VALIDATOR.validateUserMessage(aUserMessage, m_aErrorList);
assertTrue(m_aErrorList.containsAny(x -> x.getErrorText(LOCALE).contains("MessageInfo/MessageId is missing")));
}
use of com.helger.phase4.ebms3header.Ebms3MessageInfo in project phase4 by phax.
the class CEFCompatibilityValidatorTwoWayFuncTest method testValidateSignalMessageNoMessageID.
@Test
public void testValidateSignalMessageNoMessageID() {
final Ebms3SignalMessage aSignalMessage = new Ebms3SignalMessage();
aSignalMessage.setMessageInfo(new Ebms3MessageInfo());
VALIDATOR.validateSignalMessage(aSignalMessage, m_aErrorList);
assertTrue(m_aErrorList.containsAny(x -> x.getErrorText(LOCALE).contains("MessageID is missing")));
}
Aggregations