Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
184000100%18.316

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


Package List

[Summary] [Package List] [Test Cases]


PackageTestsErrors FailuresSkippedSuccess RateTime
org.nhindirect.common1000100%0
org.nhindirect.common.audit27000100%0.36
org.nhindirect.common.rest24000100%0.871
org.nhindirect.common.audit.impl40000100%13.249
org.nhindirect.common.tx12000100%0.04
org.nhindirect.common.mail.dsn1000100%0.16
org.nhindirect.common.audit.provider16000100%0.261
org.nhindirect.common.tx.impl37000100%3.335
org.nhindirect.common.tx.model25000100%0.04
org.nhindirect.common.util1000100%0

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

org.nhindirect.common

ClassTestsErrors FailuresSkippedSuccess RateTime
TestApplicationContext1000100%0

org.nhindirect.common.audit

ClassTestsErrors FailuresSkippedSuccess RateTime
AuditEventTest11000100%0
AuditorFactoryTest8000100%0.35
DefaultAuditContextTest8000100%0.01

org.nhindirect.common.audit.impl

ClassTestsErrors FailuresSkippedSuccess RateTime
FileAuditorTest22000100%13.149
LoggingAuditorTest5000100%0.01
MultiProviderAuditorTest8000100%0.02
NoOpAuditorTest5000100%0.07

org.nhindirect.common.tx

ClassTestsErrors FailuresSkippedSuccess RateTime
TxUtil_getMessageTypeTypeTest4000100%0.02
TxUtil_isRelAndTimelyTest8000100%0.02

org.nhindirect.common.mail.dsn

ClassTestsErrors FailuresSkippedSuccess RateTime
DNSGenerator_CreateDSNMessageTest1000100%0.16

org.nhindirect.common.audit.provider

ClassTestsErrors FailuresSkippedSuccess RateTime
FileAuditorProviderTest5000100%0.091
MultiProviderAuditorProviderTest6000100%0.07
SPIAuditorProviderTest5000100%0.1

org.nhindirect.common.tx.impl

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTxDetailParser_getMessageDetails_OptionalInputsTest5000100%0.02
DefaultTxDetailParser_getMimeMessageDetailsTest20000100%0.1
RESTTxServiceClient_addTxTest3000100%0.06
RESTTxServiceClient_suppressNotificationTest9000100%3.155

org.nhindirect.common.tx.model

ClassTestsErrors FailuresSkippedSuccess RateTime
Tx_toStringTest2000100%0.02
TxDetail_toStringTest2000100%0.01
TxDetailTest11000100%0
TxTest10000100%0.01

org.nhindirect.common.util

ClassTestsErrors FailuresSkippedSuccess RateTime
TestUtils1000100%0

Test Cases

[Summary] [Package List] [Test Cases]

AuditEventTest

testConstructAuditEvent_EmptyType_AssertIllgalArgumentException0
testEquals_DifferentName_AssertNotEqual0
testConstructAuditEvent_EmptyName_AssertIllgalArgumentException0
testConstructAuditEvent_NullType_AssertIllgalArgumentException0
testEquals0
testGetType0
testEquals_DifferentType_AssertNotEqual0
testConstructAuditEvent0
testGetName0
testEquals_DifferentObject_AssertNotEqual0
testConstructAuditEvent_NullName_AssertIllgalArgumentException0

AuditorFactoryTest

testCreateAuditor_SingleProvider_AssertCreatedAuditor0.3
testCreateAuditor_SingleSPIImplementation_AssertCreatedSPIAuditor0.02
testCreateAuditor_NoSPI_AssertCreatedDefaultAuditor0
testCreateAuditor_MultiSPIImplementation_AssertCreatedSPIAuditor0.03
testCreateAuditor_NullProvider_AssertException0
testCreateAuditor_SingleModule_AssertCreatedAuditor0
testCreateAuditor_NullModule_AssertException0
testCreateAuditor_EmptyModule_AssertException0

DefaultAuditContextTest

testGetName0
testConstructAuditContext_EmptyName_AssertIllgalArgumentException0
testConstructAuditContext_NullName_AssertIllgalArgumentException0
testConstructAuditContext_NullValue_AssertIllgalArgumentException0
testGetEmptyValue0
testGetValue0
testConstructAuditContext0
testAuditContextToString0

FileAuditorTest

testAudit_NullEvent_AssertExeption0.01
testCreateAuditor_NullFile_AssertException0
testCreateAuditor_IllegalFileName_AssertException0.01
testCreateAuditor_IllegalFileName2_AssertException0
testAudit_EmptyPrincipal_AssertExeption0
testAudit_NullPrincipal_AssertExeption0
testAuditCategoryAndContext_NullContext0.01
testAuditCategoryWithContextContext_EmptyContext0.02
testMalformedAuditFile_AssertFileReset7.36
testGetEventCount_AssertNoRecords5.528
testGetEventCount_AssertRecordsExist0.02
testGetLastEvent_AssertNoRecords0.01
testGetLastEvent_AssertRecordContent0.02
testGetLastEvent_AssertRecordContentAndContext0.02
testGetEvents_AssertGotAllRecordsRequested0.021
testGetEvents_RequestMoreThanAvailable_AssertGotAllAvailableRecords0.03
testGetEvents_RequestLessThanAvailable_AssertGotOnlyRecords0.02
testGetEvents_NoRecordsAvailable_NoRecordsFound0.01
testGetEvents_NoRecordsRequested_ReturnedRecords0.02
testAudit0.01
testAuditCategoryWithContext0.01
testClear0.02

LoggingAuditorTest

testAudit_NullEvent_AssertExeption0
testAudit_NullPrincipal_AssertExeption0
testAuditEvent0
testAuditCategoryAndMessage_EmptyPrincipal_AssertExeption0
testAuditWithContext0

MultiProviderAuditorTest

testAudit_NullEvent_AssertExeption0
testAudit_NullPrincipal_AssertExeption0
testAuditEvent0
testAuditCategoryAndMessage_EmptyPrincipal_AssertExeption0
testAuditWithContext0
testCreateAuditor_NullAuditors_AssertException0
testCreateAuditor_EmptyAuditors_AssertException0
testAuditCategoryAndMessage_OneAuditorFails0.01

NoOpAuditorTest

testAudit_NullEvent_AssertExeption0
testAudit_NullPrincipal_AssertExeption0
testAuditEvent0.06
testAuditCategoryAndMessage_EmptyPrincipal_AssertExeption0
testAuditWithContext0.01

FileAuditorProviderTest

testCreateProviderFromString0.081
testCreateProviderFromString_NullFileName_AssertException0
testCreateProviderFromString_EmptyFileName_AssertException0
testCreateProviderFromFile0.01
testCreateProviderFromFile_NullFile_AssertException0

MultiProviderAuditorProviderTest

testCreateProviderFromAuditorArray0.06
testCreateProvider_EmptyArray_AssertException0
testCreateProvider_NullArray_AssertException0
testCreateProviderFromAuditorcollection0.01
testCreateProvider_EmptyProviderArray_AssertException0
testCreateProvider_NullProviderArray_AssertException0

SPIAuditorProviderTest

testCreateSingleAuditorFromSPI_AssertAuditorInstanceOf0.02
testCreateSingleAuditorFromSPI_AssertMutliProviderAuditorCreated0.03
testCreateSingleAuditorFromSPI_NullConstructor_AssertMutliProviderAuditorCreated0.02
testCreateSingleAuditorFromSPI_NonNullConstructor_AssertMutliProviderAuditorCreated0.02
testNoSPIAvailable_AssertNullAuditor0.01

DNSGenerator_CreateDSNMessageTest

testCreateDSNMessage_createGeneralDSNMessage0.16

AbstractUnsecuredService_callWithRetryTest

testCallWithRetry_ioException_assertServiceException0.751
testCallWithRetry_successfulCall0

AbstractUnsecuredService_constructTest

testConstruct_nullClient1_assertIllegalArgumentException0
testConstruct_nullServiceUrl_assertIllegalArgumentException0
testConstruct_emptyServiceUr1_assertIllegalArgumentException0
testConstruct_validObjectCreated0

HttpClientFactory_createHttpClientTest

testCreateHttpClient_createWithDefaultSettings0
testCreateHttpClient_createWithCustomSettings0

UnsecuredServiceRequestBase_escapeURITest

testEscapeURI_replaceSpace0
testEscapeURI_replacePlus0

UnsecuredServiceRequestBase_handleUnauthorizedTest

testHandleUnauthorized_noHeaders_assertAuthorizationException0

UnsecuredServiceRequestBase_interpretResponseTest

testInterpretResponseTest_200Status0
testInterpretResponseTest_201Status0
testInterpretResponseTest_204Status0
testInterpretResponseTest_401Status_assertAuthorizationException0
testInterpretResponseTest_404Status_assertServiceMethodException0
testInterpretResponseTest_400Status_assertServiceMethodException0
testInterpretResponseTest_500Status_assertServiceMethodException0

UnsecureServiceRequestBase_callTest

testCall_callWithNoReturnValue0.06
testCall_nullRequest_assertServiceException0

UsecuredServiceRequestBase_checkContentTypeTest

testCheckContentType_validContentType0.01
testCheckContentType_incompatibleType_assertServiceException0.01
testCheckContentType_nullEnitity_assertServiceException0

UsecuredServiceRequestBase_constructTest

testConstruct_validConstruction0

TestApplicationContext

dummy0

DefaultTxDetailParser_getMessageDetails_OptionalInputsTest

testGetMessageDetailsFromInputStream_getDetailsFromCommonMessage0.01
testGetMessageDetailsFromInputStream_nullStream_assertException0
testGetMessageDetailsFromHeaders_getDetailsFromCommonMessage0.01
testGetMessageDetails_getReportExtension_dispostionOption0
testGetMessageDetails_getReportExtension_noDispostionOption0

DefaultTxDetailParser_getMimeMessageDetailsTest

testGetMessageDetails_getDetailsFromCommonMessage0
testGetMessageDetails_noMessageId0.01
testGetMessageDetails_noSubject0
testGetMessageDetails_noFullHeaders0.01
testGetMessageDetails_noFrom0.01
testGetMessageDetails_mutlipleFroms0
testGetMessageDetails_noSender0.01
testGetMessageDetails_senderExists0
testGetMessageDetails_mutlipleTo0.01
testGetMessageDetails_ToAndCC0
testGetMessageDetails_generalMDNMessage0.01
testGetMessageDetails_generalMDNMessage_noOrigMessageId_getFromReplyTo0
testGetMessageDetails_generalMDNMessage_noOrigMessageId0
testGetMessageDetails_noDisposition0.01
testGetMessageDetails_noFinalRecipient0
testGetMessageDetails_generalDNSMessage0.01
testGetMessageDetails_generalDNSMessage_noOrigMessageId_getFromReplyTo0
testGetMessageDetails_generalDNSMessage_noOrigMessageId0
testGetMessageDetails_generalDNSMessage_noActionOrStatus0.01
testGetMessageDetails_commonMessage_timelyAndReliable0

RESTTxServiceClient_addTxTest

testSingle_assertTxReceived0.02
testSendMimeMessage_assertTxsReceived0.02
testSendInputStream_assertTxsReceived0.02

RESTTxServiceClient_suppressNotificationTest

testNonNotificationMessage_assertFalse2.524
testMDNNotificationMessage_assertTrue0.521
testDSNNotificationMessage_assertTrue0.03
testNullNotificationMessage_assertException0
testEmptyOriginalMessageId_assertFalse0.01
testNullOriginalMessageId_assertFalse0.02
testNullTx_assertException0
testNotNotificationString_assertFalse0.02
testNotificationMessageIdString_assertTrue0.02

Tx_toStringTest

testToString_unknownTypeEmptyDetails0
testToString_IMFtypeMultipleDetails0.01

TxDetail_toStringTest

toStringTest_nonEmptyDetailsDetail0
toStringTest_unknownEmptyDetail0

TxDetailTest

testConstruct_setName_nullName0
testConstruct_setName_emptyName0
testConstruct_setValue_nullValue0
testConstruct_defaultConstructor0
testConstruct_paramaterizedTypeConstructor0
testConstruct_paramaterizedStringConstructor0
testConstruct_paramaterizedStringConstructor_nullType0
testConstruct_paramaterizedStringConstructor_emptyType0
testConstruct_paramaterizedStringConstructor_nullValue0
testConstruct_setGetName0
testConstruct_setGetValue0

TxTest

testConstruct_parameterizedConstructor0
testConstruct_parameterizedConstructor_nullDetails0
testConstruct_parameterizedConstructor_nullType0
testConstruct_setGetMessageType0
testConstruct_setType_nullType0
testConstruct_setGetDetails0
testConstruct_setDetails_nullDetails0
testConstruct_getDetailByType0
testConstruct_getDetailByEnum0
testConstruct_defaultConstructor0

TxUtil_getMessageTypeTypeTest

testGetMessageType_DSNMessage0
testGetMessageType_MDNMessage0
testGetMessageType_SMIMEMessage0.01
testGetMessageType_IMFMessage0

TxUtil_isRelAndTimelyTest

testIsTimelyAndRequired_nullMessage_assertFalse0
testIsTimelyAndRequired_nullMimeMessage_assertFalse0.01
testIsTimelyAndRequired_emptyDetails_assertFalse0
testIsTimelyAndRequired_NoMNDOptionDetails_assertFalse0
testIsTimelyAndRequired_MDNOptionNotForTimely_assertFalse0
testIsTimelyAndRequired_MDNOptionForTimely_assertTrue0
testIsTimelyAndRequired_MDNOptionForTimelyMimeMessage_assertTrue0
testIsTimelyAndRequired_NoMDNOptionForTimelyMimeMessage_assertFalse0.01

TestUtils

dummy0