Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
186 0 0 0 100% 248.976

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.nhindirect.gateway.streams 1 0 0 0 100% 13.659
org.nhindirect.gateway.smtp.config 6 0 0 0 100% 2.168
org.nhindirect.gateway.smtp.james.matcher 16 0 0 0 100% 0.038
org.nhindirect.gateway.smtp 51 0 0 0 100% 19.059
org.nhindirect.gateway.smtp.config.cert.impl 26 0 0 0 100% 5.509
org.nhindirect.gateway.smtp.james.mailet 86 0 0 0 100% 208.543

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.nhindirect.gateway.streams

Class Tests Errors Failures Skipped Success Rate Time
SmtpGatewayMessageProcessor_receiveMessageTest 1 0 0 0 100% 13.659

org.nhindirect.gateway.smtp.config

Class Tests Errors Failures Skipped Success Rate Time
SMTPAgentFactoryFunctional_Test 6 0 0 0 100% 2.168

org.nhindirect.gateway.smtp.james.matcher

Class Tests Errors Failures Skipped Success Rate Time
IsNotificationTest 6 0 0 0 100% 0.001
IsNotSMIMEEncryptedTest 4 0 0 0 100% 0.001
RecipAndSenderIsNotLocalTest 6 0 0 0 100% 0.036

org.nhindirect.gateway.smtp

Class Tests Errors Failures Skipped Success Rate Time
DomainPostmasterTest 8 0 0 0 100% 0.001
ReliableDispatchedNotificationProducer_produceTest 1 0 0 0 100% 0.001
GatewayState_updateAgentSettingsTest 1 0 0 0 100% 7.24
MessageProcessingSettingsTest 3 0 0 0 100% 0.039
GatewayState_getSetAttributesTest 3 0 0 0 100% 1.87
NotificationSettingsTest 9 0 0 0 100% 0
GatewayState_startSettingsManagerTest 4 0 0 0 100% 0.034
SmtpAgentFactory_CreateAgent_Test 2 0 0 0 100% 2.032
DefaultSmtpAgent_AuditMessage_Test 2 0 0 0 100% 5.706
GatewayState_stopSettingManagerTest 2 0 0 0 100% 0
DefaultSmtpAgent_ProcessMessage_Test 5 0 0 0 100% 2.133
NotificationProducerTest 11 0 0 0 100% 0.003

org.nhindirect.gateway.smtp.config.cert.impl

Class Tests Errors Failures Skipped Success Rate Time
ConfigServiceRESTCertificateStore_getDefaultCachePolicyTest 3 0 0 0 100% 0.008
ConfigServiceRESTCertificateStore_getCertificateWithHSMKeyTest 1 0 0 0 100% 0.011
ConfigServiceRESTCertificateStore_CRUD_Test 18 0 0 0 100% 3.504
ConfigServiceRESTCertificateStore_Construct_Test 4 0 0 0 100% 1.986

Test Cases

[Summary] [Package List] [Test Cases]

DomainPostmasterTest

testConstructDefaultPostmaster 0
testSetDomain_DefaultConstructor 0
testConstructPostmasterWithDomain 0
testSetPostmaster_DefaultConstructor 0
testConstructPostmaster_NullDomain_AssertException 0
testConstructPostmasterWithDomainAndPostmaster 0
testSetDomain_ParamConstructor 0
testSetPostmaster_ParamConstructor 0

ReliableDispatchedNotificationProducer_produceTest

testCreateAckWithNoText 0

NHINDSecurityAndTrustMailet_onProcess_Test

testProcessOutgoing_AssertOnPostProcessAndPreProcessedCalled 1.218
testProcessUntrustedOutgoing_AssertOnRejectedProcessedCalled 0.308

NHINDSecurityAndTrustMailet_isOutgoingTest

testIsOutgoingTest_senderInDomain_assertTrue 0.283
testIsOutgoingTest_encryptedMessageFromInternalDomain_assertFalse 0.238
testIsOutgoingTest_senderNotInDomain_assertFalse 0.25

GatewayState_updateAgentSettingsTest

testNewDomainListSettings 5.356

MessageProcessingSettingsTest

testSetSaveMessageFolder_InvalidFolderName_AssertException 0.004
testSetSaveMessageFolder 0
testConstructor 0

NHINDSecurityAndTrustMailet_createDSNCreatorTest

testCreateDSNCreator_assertDSNCreator 0.342

GatewayState_getSetAttributesTest

testGetSetAttributes_getSetManagerInterval 0.012
testGetSetAttributes_getSetAgent 0.004
testGetSetAttributes_getSetAgentConfig 0.003

NotificationSettingsTest

testConstructor_setAutoResponseTrue 0
testConstructor_nullProductName 0
testConstructor_setAutoResponseFalse 0
testConstructor_emptyProductName 0
testConstructor_setProductName 0
testConstructor_setText 0
testConstructor_nullText 0
testConstructor_emptyText 0
testDefaultConstructor 0

IsNotificationTest

testIsNotification_ecryptedMessage_assertNull 0
testIsNotification_nullMessage_assertNull 0
testIsNotification_plainMessage_assertNull 0
testIsNoticiation_nullMail_assertNull 0
testIsNotification_DSNMessage_assertAllRecips 0
testIsNotification_MDNMessage_assertAllRecips 0

NotificationSupressor_isConusmingProcessedMDNTest

testIsConusmingProcessedMDNTest_emptyConfigParam_falseOptionSettings_assertFalse 0.201
testIsConusmingProcessedMDNTest_falseConfigParam_assertFalse 0.165
testIsConusmingProcessedMDNTest_TRUEConfigParam_assertTrue 0.172
testIsConusmingProcessedMDNTest_emptyConfigParam_trueOptionSettings_assertTrue 0.216
testIsConusmingProcessedMDNTest_nullConfigParamAndOptions_assertfalse 0.188
testIsConusmingProcessedMDNTest_emtpyConfigParamAndOptions_assertfalse 0.175
testIsConusmingProcessedMDNTest_trueConfigParam_assertTrue 0.197

GatewayState_startSettingsManagerTest

testStartSettingsManager_managerAlreadyRunning_assertException 0.03
testStartSettingsManager_assertSuccessfulStart 0
testStartSettingsManager_nullAgentConfig_assertException 0
testStartSettingsManager_nullAgent_assertException 0.001

NHINDSecurityAndTrustMailet_functionalTest

testProcessOutgoingMessage_NoTrustedRecipients 0.291
testProcessOutgoingMessageEndToEnd_tamperedRoutingHeaders_rejectPolicyOn_assertRejected 0.409
testProcessOutgoingMessageEndToEnd_tamperedRoutingHeaders_rejectPolicyOff_assertNotRejected 2.601
testProcessMDNMessageEndToEnd 2.393
testProcessOutgoingMessageEndToEnd 0.862
testProcessOutgoingMessageEndToEnd_multipleProcessThreads 143.233

NHINDSecurityAndTrustMailet_service_Test

testService_NullProcessedMessage_GhostState 0.042
testService_ProcessThrowsRuntimeException_AssertExceptionAndGhostState 0.021
testService_ProcessIsNull_AssertGhostState 0.001
testService_UseRcpt_AssertRecipientsUsed 0.001
testService_ProcessThrowsSmtpAgentException_AssertExceptionAndGhostState 0.01
testService_RejectRecipients_AssertRejectedList 0.001
testService_UseToHeader_AssertRecipientsUsed 0

SmtpAgentFactory_CreateAgent_Test

testCreateDefaultAgent_InvalidConfiguration_AssertException 0.017
testCreateDefaultAgent_ValidConfiguration 0.037

NHINDSecurityAndTrustMailet_getMessageToTrackTest

testMessageToTrackTest_nullParser_assertNullTx 0.319
testMessageToTrackTest_regularOutgoingMessage_assertTx 0.293
testMessageToTrackTest_nonIMFMessage_assertMDNTx 0.37

NHINDSecurityAndTrustMailet_createTxServiceTest

testCreateDefaultServiceModules_appContextAvailable_assertDefaultTxService 0.195
testCreateDefaultServiceModules_noAppContext_assertNoOpMonitoringService 0.011

IsNotSMIMEEncryptedTest

testIsNotSMIMEMessage_unecryptedMessage_assertAllRecips 0
testIsNotSMIMEMessage_nullMail_assertNull 0
testIsNotSMIMEMessage_ecryptedMessage_assertNull 0
testIsNotSMIMEMessage_nullMessage_assertNull 0

DirectBounce_sendDSNTest

testSendDSN_IMFMessage_assertDSNSent 0.057
testSendDSN_MDNMessage_assertNotDSNSent 0.003
testSendDSN_IMFMessage_multipleDomainRecipse_assertMultiDSNSent 0.009

TrackIncomingNotification_trackMessageTest

testMonitorMessage_DSNMessage_assertMessageTracked 0.072
testTrackMessage_nullParserAndNullTx_assertMessageNoTracked 0.069
testTrackMessage_iMFMessage_assertMessageNoTracked 0.087
testMonitorMessage_MDNMessage_assertMessageTracked 0.07

RecipAndSenderIsNotLocalTest

testMatch_RemoteSender_AssertRecipeintReturned 0.031
testMatch_LocalSender_LocalRcpt_AssertNoneReturned 0.001
testEmptyDomainList 0
testNullDomainList 0.001
testMatch_LocalSender_RemoteRcpt_AssertRecipeintReturned 0.001
testMatch_LocalSender_LocalAndRemoteRcpt_AssertRemoteRcptReturned 0.001

ConfigServiceRESTCertificateStore_getDefaultCachePolicyTest

testGetDefaultCachePolicyTest_useDefaultSettings_assertSettings 0.002
testGetDefaultCachePolicyTest_useSettingsFromJVMParams_assertSettings 0.002
testGetDefaultCachePolicyTest_useSettingsFromPropertiesFile_assertSettings 0.003

NHINDSecurityAndTrustMailet_autoGeneratorDSNTest

testAutoGeneratorDSN_generateDNSForReliableUntrustedRecips_assertDSNSent 0.235
testAutoGeneratorDSN_untrustedMDNMessage_assertNoDSNSent 0.194
testAutoGeneratorDSN_generateDNSForGeneralUntrustedRecips_assertDSNSent 0.186
testAutoGeneratorDSN_generateDNSForGeneralMultiRecipUntrustedRecips_assertDSNSent 0.182

SMTPAgentFactoryFunctional_Test

testConfigurationPrivateKeyStoreFile 0.066
testDefaultConfigurationNoSettings 0.066
testOutboundOnlyAnchors_WSStoreAnchor 0.022
testOutboundOnlyAnchors_keyStoreAnchor 0.027
testConfigurationPublicKeyStoreFile 0.027
testConfigurationAnchorKeyStoreFile 0.034

SuppressAndTrackAggregate_serviceTest

testMonitorMessage_MDNMessage_assertMessageTracked 0.352

DefaultSmtpAgent_AuditMessage_Test

testAuditIncomingMessage_AssertEventsAudited 1.139
testAuditOutgoingMessage_AssertEventsAudited 0.219

GatewayState_stopSettingManagerTest

testStopSettingsManager_managerNull_assertExepction 0
testStopSettingsManager_assertStoppedSuccessful 0

DefaultSmtpAgent_ProcessMessage_Test

testProcessValidOutgoingMessageWithMDNRequest_AssertSuccessfulResult 0.06
testProcessValidIncomingMessage_AutoResponseTrue_NOMDNRequest_AssertSuccessfulResultWithAnMDNMessage 0.036
testProcessValidIncomingMessageWithMDNRequest_AssertSuccessfulResultWithNoBounces 0.033
testUniitializedNHINDAgent_AssertUninitializedException 0.043
testProcessValidOutgoingMessage_AssertSuccessfulResultWithNoBounces 0.044

TrackIncomingNotification_initializationTest

testInitialization_emptyMonitorURL 0.066
testInitialization_valueMonitorURL 0.067
testInitialization_nullMonitorURL 0.076

NotificationSupressor_suppressMessageTest

testConsumeMessage_exceptionInService_assertFalse 0.27
testConsumeMessage_consumeMDNFlagNotSet_MDNProccessedMessage_assertFalse 0.281
testConsumeMessage_consumeMDNFlagSet_dispositionEmpty_assertFalse 0.244
testConsumeMessage_consumeMDNFlagSet_MDNProccessedMessage_assertTrue 0.191
testConsumeMessage_txServiceReturnsTrue_assertTrue 0.205
testConsumeMessage_nonNotificationMessage_assertFalse 0.198
testConsumeMessage_noTxService_assertFalse 0.217
testConsumeMessage_consumeMDNFlagSet_dispositionProcessed_assertFalse 0.219

RefreshSecurityAndTrustStateMailet_refreshStateTest

testRefreshWithUpdateManagerAlreadyRunning 0.211

NHINDSecurityAndTrustMailet_trackMessageTest

testMonitorMessage_trackIncomingMDNMessage_assertNotMessageTracked 0.244
testMonitorMessage_trackIncomingMFMessage_assertNotMessageTracked 0.187
testMonitorMessage_trackIncomingDSNMessage_assertNotMessageTracked 0.191
testMonitorMessage_trackOutgoingMDNMessage_assertNotMessageTracked 0.194
testMonitorMessage_trackOutgoingIMFMessage_assertMessageTracked 0.255
testMonitorMessage_trackOutgoingDSNMessage_assertNotMessageTracked 0.206

SmtpGatewayMessageProcessor_receiveMessageTest

testReceiveSMTPMessage_outgoingMessage_assertProcessed 0.145

TimelyAndReliableLocalDelivery_serviceTest

testService_successfulDelivery_reliableHeader_assertMDNCreated 0.001
testService_failedDelivery_nonIMF_assertDSNNotCreated 0.015
testService_failedDelivery_assertDSNCreated 0.011
testService_successfulDelivery_reliableHeader_nonIMFMessage_assertMDNNotCreated 0.001
testService_successfulDelivery_noReliableHeader_assertMDNNotCreated 0

NHINDSecurityAndTrustMailet_initialization_Test

testRejectRoutingTamperConfiguration_set_assertTrue 1.702
testValidJCEProviderConfiguration_assertJCEStrings 0.24
testRejectRoutingTamperConfiguration_notSet_assertFalse 0.166
testValidMailetConfiguration_AssertProperWSRESTInitialization 0.266

NHINDSecurityAndTrustMailet_monitorMessageTest

testMonitorMessage_trackMDNMessage_assertMessageNotTracked 2.346
testMonitorMessage_trackDSNMessage_assertMessageNotTracked 0.957
testMonitorMessage_trackTrustedOutgoingMessage_assertMessageTracked 0.148

ConfigServiceRESTCertificateStore_getCertificateWithHSMKeyTest

testGetCertifcateWithPrivKey_noPrivKeyInHSM 0.011

ConfigServiceRESTCertificateStore_CRUD_Test

testGetCertificateByEmail_PopulatedStore_AssertSingleRecord 1.472
testGetCertificates_EmptyStore_AssertNoRecords 0.005
testGetCertificateBySubject_PopulatedStore_AssertMultipleRecord 0.012
testGetCertificates_PopulatedStore_AssertFoundRecords 0.011
testGetCertificateBySubject_PopulatedStore_AssertNoRecords 0.009
testAdd_AssertException 0.005
testContains_AssertException 0.003
testGetCertificateByEmail_EmptyStore_AssertNoRecords 0.006
testGetCertificates_NullProxy_AssertException 0.003
testGetCertificateByEmail_PopulatedStore_AssertMultipleRecord 0.009
testRemove_AssertException 0.003
testGetCertificateBySubject_PopulatedStore_NullCache_AssertMultipleRecord 0.01
testGetCertificateByEmail_PopulatedStore_AssertNoRecords 0.008
testGetCertificateBySubject_PopulatedStore_NullCache_AssertNoRecord 0.01
testGetCertificateByEmail_NullProxy_AssertException 0.004
testGetCertificateByEmail_PopulatedOrgCertStore_AssertMultipleRecord 0.01
testGetCertificateBySubject_EmptyStore_AssertNoRecords 0.005
testGetCertificateOrgCert_PopulatedOrgCertStore_AssertMultipleRecord 0.01

ConfigServiceRESTCertificateStore_Construct_Test

testConstructStore_ConfigurationProxyOnly 0.016
testConstructStore_CustomCachePolicy 0.004
testConstructStore_CustomBootstrap 0.004
testConstructStore_NullBootstrap 0.004

SuppressAndTrackAggregate_initTest

testInitialization_emptyMonitorURL 0.496
testInitialization_valueMonitorURL 0.291
testInitialization_nullMonitorURL 0.285

NotificationProducerTest

testConstructProducer 0
testProduce_AuthResponseFalse_AssertEmptyList 0
testProduce_NoDomainRecipients_AssertEmptyList 0.001
testProduce_NullEnvelope_AssertException 0
testProduceSingleMDN 0
testProduceMDN_MultipleRecipients 0.001
testCreateAckWithText 0
testProduceMDN_MultipleRecipients_SingleDomain_AssertOneMDN 0
testConstructProducer_NullSettings_AssertException 0
testProduce_MessageIsMDN_AssertEmptyList 0
testCreateAckWithNoText 0

TimelyAndReliableLocalDelivery_initTest

testInit_initSuccessful 0.086

NHINDSecurityAndTrustMailet_outboundPolicyForInboundTest

testOutboundPolicyForInbound_nullMailetParamAndFalseOptions_assertFalse 0.396
testOutboundPolicyForInbound_falseMailetParamAndTrueOptions_assertFalse 0.26
testOutboundPolicyForInbound_nullMailetParamAndTrueOptions_assertTrue 0.281
testOutboundPolicyForInbound_emptyMailetParamAndNullOptions_assertFalse 0.247
testOutboundPolicyForInbound_trueMailetParamAndNullOptions_assertTrue 0.253
testOutboundPolicyForInbound_nullMailetParamAndNullOptions_assertFalse 0.24
testOutboundPolicyForInbound_invalidMailetParamAndNullOptions_assertFalse 0.248
testOutboundPolicyForInbound_trueMailetParamAndFalseOptions_assertTrue 0.23
testOutboundPolicyForInbound_falseMailetParamAndNullOptions_assertFalse 0.222