Search in sources :

Example 1 with GeneralCompletionCondition

use of org.nhindirect.monitor.condition.impl.GeneralCompletionCondition in project nhin-d by DirectProject.

the class DSNMessageGenerator_generateDSNFailureMessageTest method createGenerator.

DSNMessageGenerator createGenerator() {
    DSNGenerator dsnGenerator = new DSNGenerator("Not Delivered:");
    TxCompletionCondition checker = new GeneralCompletionCondition();
    DSNFailureTextBodyPartGenerator textGenerator = new DefaultDSNFailureTextBodyPartGenerator("", "", "", "", "", HumanReadableTextAssemblerFactory.getInstance());
    return new DSNMessageGenerator(dsnGenerator, "postmaster", checker, "JUnitMTA", textGenerator);
}
Also used : TxCompletionCondition(org.nhindirect.monitor.condition.TxCompletionCondition) GeneralCompletionCondition(org.nhindirect.monitor.condition.impl.GeneralCompletionCondition) DSNGenerator(org.nhindirect.common.mail.dsn.DSNGenerator) DefaultDSNFailureTextBodyPartGenerator(org.nhindirect.common.mail.dsn.impl.DefaultDSNFailureTextBodyPartGenerator) DSNFailureTextBodyPartGenerator(org.nhindirect.common.mail.dsn.DSNFailureTextBodyPartGenerator) DefaultDSNFailureTextBodyPartGenerator(org.nhindirect.common.mail.dsn.impl.DefaultDSNFailureTextBodyPartGenerator)

Aggregations

DSNFailureTextBodyPartGenerator (org.nhindirect.common.mail.dsn.DSNFailureTextBodyPartGenerator)1 DSNGenerator (org.nhindirect.common.mail.dsn.DSNGenerator)1 DefaultDSNFailureTextBodyPartGenerator (org.nhindirect.common.mail.dsn.impl.DefaultDSNFailureTextBodyPartGenerator)1 TxCompletionCondition (org.nhindirect.monitor.condition.TxCompletionCondition)1 GeneralCompletionCondition (org.nhindirect.monitor.condition.impl.GeneralCompletionCondition)1