Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
308 0 0 0 100% 2.952 s

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
com.reallifedeveloper.common.infrastructure 62 0 0 0 100% 0.084 s
com.reallifedeveloper.common.resource 35 0 0 0 100% 0.357 s
com.reallifedeveloper.common.domain.event 29 0 0 0 100% 0.693 s
com.reallifedeveloper.common.infrastructure.messaging 15 0 0 0 100% 0.625 s
com.reallifedeveloper.common.resource.notification 21 0 0 0 100% 0.500 s
com.reallifedeveloper.common.application.eventstore 18 0 0 0 100% 0.044 s
com.reallifedeveloper.common.application.notification 47 0 0 0 100% 0.091 s
com.reallifedeveloper.common.infrastructure.jmx 24 0 0 0 100% 0.438 s
com.reallifedeveloper.common.resource.documentation 10 0 0 0 100% 0.050 s
com.reallifedeveloper.common.domain.registry 4 0 0 0 100% 0.008 s
com.reallifedeveloper.common.infrastructure.persistence 13 0 0 0 100% 0.022 s
com.reallifedeveloper.common.domain 30 0 0 0 100% 0.040 s

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

com.reallifedeveloper.common.infrastructure

- Class Tests Errors Failures Skipped Success Rate Time
Markdown4jHtmlProducerTest 4 0 0 0 100% 0.003 s
GsonNotificationReaderTest 44 0 0 0 100% 0.054 s
GsonObjectSerializerTest 14 0 0 0 100% 0.027 s

com.reallifedeveloper.common.resource

- Class Tests Errors Failures Skipped Success Rate Time
TestResourceTest 6 0 0 0 100% 0.283 s
ResourceTest 15 0 0 0 100% 0.045 s
ResourceUtilTest 14 0 0 0 100% 0.029 s

com.reallifedeveloper.common.domain.event

- Class Tests Errors Failures Skipped Success Rate Time
ThreadLocalDomainEventPublisherTest 9 0 0 0 100% 0.020 s
EventSavingSubscriberTest 3 0 0 0 100% 0.003 s
SimpleDomainEventPublisherTest 7 0 0 0 100% 0.011 s
LoggingDomainEventSubscriberTest 2 0 0 0 100% 0.008 s
DomainEventTest 8 0 0 0 100% 0.651 s

com.reallifedeveloper.common.infrastructure.messaging

- Class Tests Errors Failures Skipped Success Rate Time
KafkaSecurityConfigurationTest 5 0 0 0 100% 0.108 s
RabbitMQNotificationPublisherTest 6 0 0 0 100% 0.180 s
KafkaNotificationPublisherTest 4 0 0 0 100% 0.337 s

com.reallifedeveloper.common.resource.notification

- Class Tests Errors Failures Skipped Success Rate Time
NotificationResourceTest 12 0 0 0 100% 0.438 s
NotificationRepresentationTest 5 0 0 0 100% 0.041 s
NotificationLogRepresentationTest 4 0 0 0 100% 0.021 s

com.reallifedeveloper.common.application.eventstore

- Class Tests Errors Failures Skipped Success Rate Time
EventStoreTest 11 0 0 0 100% 0.036 s
EventStoringSubscriberTest 2 0 0 0 100% 0.004 s
StoredEventTest 5 0 0 0 100% 0.004 s

com.reallifedeveloper.common.application.notification

- Class Tests Errors Failures Skipped Success Rate Time
NotificationLogIdTest 14 0 0 0 100% 0.016 s
NotificationFactoryTest 5 0 0 0 100% 0.010 s
NotificationPublisherTaskTest 5 0 0 0 100% 0.012 s
NotificationServiceTest 11 0 0 0 100% 0.036 s
NotificationLogTest 7 0 0 0 100% 0.009 s
NotificationTest 5 0 0 0 100% 0.008 s

com.reallifedeveloper.common.infrastructure.jmx

- Class Tests Errors Failures Skipped Success Rate Time
ServletContextSystemInfoTest 2 0 0 0 100% 0.008 s
Log4jConfiguratorTest 10 0 0 0 100% 0.154 s
TomcatConnectionPoolConfiguratorTest 12 0 0 0 100% 0.276 s

com.reallifedeveloper.common.resource.documentation

- Class Tests Errors Failures Skipped Success Rate Time
DocumentationResourceTest 10 0 0 0 100% 0.050 s

com.reallifedeveloper.common.domain.registry

- Class Tests Errors Failures Skipped Success Rate Time
CommonDomainRegistryTest 4 0 0 0 100% 0.008 s

com.reallifedeveloper.common.infrastructure.persistence

- Class Tests Errors Failures Skipped Success Rate Time
TimestampedJpaEntityTest 7 0 0 0 100% 0.015 s
JpaRepositoryTest 6 0 0 0 100% 0.007 s

com.reallifedeveloper.common.domain

- Class Tests Errors Failures Skipped Success Rate Time
LogUtilTest 6 0 0 0 100% 0.007 s
ErrorHandlingTest 14 0 0 0 100% 0.017 s
ClockTimeServiceTest 2 0 0 0 100% 0.010 s
TestTimeServiceTest 8 0 0 0 100% 0.006 s

Test Cases

[Summary] [Package List] [Test Cases]

TimestampedJpaEntityTest

constructorId 0.002 s
constructor 0 s
setUpdated 0.001 s
constructorUpdatedNull 0.001 s
constructorCreatedNull 0.001 s
setUpdatedNull 0.005 s
constructorIdCreatedUpdated 0 s

ThreadLocalDomainEventPublisherTest

subscribingSubscriberNotAllowed 0.001 s
threadLocalSubscribers 0.006 s
reset 0.001 s
canSubscribeToAllDomainEvents 0.001 s
simpleSubscription 0.002 s
correctSubscribersGetNotified 0 s
resettingSubscriberNotAllowed 0 s
noSubscribers 0 s
publishingSubscriberNotAllowed 0.001 s

NotificationLogIdTest

constructorStringTooFewIntegers 0.003 s
constructorStringLowEqualToHigh 0 s
constructorLongsLowGreaterThanHigh 0.002 s
constructorStringNotIntegers 0.001 s
constructorLongsLowEqualToHigh 0.001 s
externalForm 0 s
previous 0.001 s
toStringMethod 0 s
constructorStringTooManyIntegers 0 s
constructorLongs 0.001 s
next 0 s
constructorStringNull 0.001 s
constructorStringLowGreaterThanHigh 0.001 s
constructorString 0.001 s

ServletContextSystemInfoTest

testSetServletContext 0.006 s
testSetServletContextWithNullContext 0.001 s

Log4jConfiguratorTest

getLogLevelNull 0.032 s
setLogLevelNonExistingLoggerName 0.020 s
setLogLevel 0.022 s
getLogLevel 0.012 s
setLogLevelBlankLoggerName 0.012 s
setLogLevelIncorrectLevel 0.011 s
setLogLevelNullLoggerName 0.010 s
getLogLevelNonExistingLoggerName 0.010 s
getLoggers 0.010 s
setLogLevelNullLevel 0.009 s

Markdown4jHtmlProducerTest

produceNull 0.001 s
produceResourceNotFound 0.001 s
produce 0.001 s
canHandle 0 s

NotificationFactoryTest

fromStoredEventWithSingleEventReturnsNotification 0.002 s
fromStoredEventWithMultipleEventsReturnsAList 0.003 s
instanceWithNullEventStoreShouldThrowException 0.001 s
fromStoredEventsWillNullListShouldThrowException 0 s
fromStoreventWithNullEventShouldThrowException 0 s

EventSavingSubscriberTest

eventType 0.001 s
clear 0 s
handleEvent 0.001 s

LogUtilTest

removeCRLFIsNullSafe 0.001 s
removeCRLFRemovesSingleCarriageReturn 0 s
removeCRLFRemovesMultipleNewLinesAndCarriageReturns 0 s
removeCRLFRemovesSingleNewLine 0.001 s
removeCRLFCallsToStringOnNonNullObject 0.001 s
removeCRLFNullObjectDoesNotThrowException 0 s

ErrorHandlingTest

checkNullWithNullParameterArray 0.001 s
checkNullSixArguments 0.001 s
checkNullOrBlankWithNullMessageTemplate 0.002 s
checkNullEightArguments 0 s
checkNullOneArgument 0 s
checkNullOrBlankWithBlankString 0.001 s
checkNullOrBlankWithNonBlankString 0 s
checkNullWithNullMessageTemplate 0.001 s
checkNullOrBlankWithNullString 0.001 s
checkNullTwoArguments 0 s
checkNullThreeArguments 0 s
checkNullSevenArguments 0.001 s
checkNullFiveArguments 0.001 s
checkNullFourArguments 0 s

ClockTimeServiceTest

now 0.003 s
setClock 0.001 s

NotificationPublisherTaskTest

run 0.002 s
constructorPublicationChannelNull 0.004 s
runWithNullPointerException 0.001 s
constructorNotificationServiceNull 0.001 s
runWithIOException 0.002 s

DocumentationResourceTest

getDocumentationDefaultDocumentDoesNotExist 0.005 s
constructorNonExistingResourceDir 0.001 s
getDocumentationNamedDocument 0.006 s
redirectWihoutUriInfoThrowsException 0.001 s
redirect 0.003 s
constructorNullHtmlProducer 0.002 s
getDocumentationNamedDocumentDoesNotExist 0.003 s
constructorNullResourceDir 0.001 s
getDocumentationDefaultDocument 0.003 s
getDocumentationNamedBinaryDocument 0.013 s

TestResourceTest

postRequestWithPath 0.059 s
putRequestNotFound 0.009 s
getWithoutProperlyConfiguredResponse 0.016 s
getRequestRoot 0.006 s
postRequestWithMuchData 0.008 s
multipleRequests 0.018 s

GsonNotificationReaderTest

eventDoubleValue 0.008 s
eventLongValueMax 0 s
eventLongValueMin 0 s
eventStringValue 0.001 s
eventVersionForNotificationWitNullEvent 0.001 s
eventTypeForEmptyNotification 0.002 s
constructorMalformedJsonObject 0.001 s
eventLongValueNonExisting 0.001 s
eventIntValue 0.001 s
eventDateValueNonWrongFormat 0 s
eventDoubleValueNotNumber 0 s
eventIntValueMax 0.001 s
eventIntValueMin 0 s
occurredOnForNotificationWithNullOccurredOn 0 s
nestedFieldNameNotAnObject 0.001 s
eventLongValueEmpty 0.001 s
eventDoubleValueNull 0.001 s
storedEventIdForNotificationWithNullStoredEventId 0.001 s
notificationIdMissingId 0 s
validJsonButNotValidEventMessage 0 s
eventStringValueNonExisting 0 s
eventTypeMissingType 0 s
eventVersionForNotificationWithNullEventVersion 0.001 s
constructorNotAJsonObject 0.001 s
eventStringValueNull 0 s
storedEventIdForEmptyNotification 0 s
occurredOnForEmptyNotification 0.001 s
eventLongValueNotInteger 0 s
occurredOnMissingDate 0 s
eventDateValueNull 0.001 s
eventDateValueNonExisting 0 s
eventTypeForNotificationWithNullEventType 0.001 s
eventVersionForNotificationWitoutEventVersion 0.001 s
eventDateValue 0.001 s
eventIntValueNotInteger 0 s
eventVersionMissingVersion 0 s
eventLongValue 0.001 s
realNotification 0.005 s
constructorNullJsonObject 0 s
eventDoubleValueMax 0 s
eventDoubleValueMin 0.001 s
eventIntValueNonExisting 0 s
nestedFieldNameNonExistingField 0.001 s
eventIntValueEmpty 0 s

TomcatConnectionPoolConfiguratorTest

constructorNullDataSource 0.011 s
getUrl 0.001 s
testIdle 0.252 s
getWaitCount 0.002 s
getDriverClassName 0 s
getIdle 0.001 s
getSize 0.001 s
purge 0.002 s
getActive 0.001 s
checkIdle 0.001 s
checkAbandoned 0.001 s
purgeOnReturn 0.001 s

NotificationServiceTest

constructorNullEventStore 0.003 s
constructorNullNotificationPublisher 0.001 s
notificationLog 0.003 s
publishNotifications 0.003 s
publishSameNotificationsTwice 0.005 s
publishNotificationsTwiceWithSomeNewEvents 0.002 s
notificationLogNoNotifications 0 s
currentNotificationLogFullBatch 0.004 s
constructorNullMessageTrackerRepository 0.001 s
currentNotificationLog 0.003 s
currentNotificationLogNoNotifications 0 s

KafkaSecurityConfigurationTest

applySecurityConfigurationWithTruststoreLocationSupportsClasspathValue 0.105 s
applySecurityConfigurationStoresTheProperty 0.001 s
applySecurityConfigurationTwiceWithSamePropertyShouldFail 0 s
applySecurityConfigurationWithTruststoreLocationFailsIfClasspathResourceDoesNotExist 0.001 s
applySecurityConfigurationWithTruststoreLocationSupportsNonClasspathValue 0 s

GsonObjectSerializerTest

deserializeNotificationWithEmptyEventAndUnknownEventType 0.001 s
deserializeIncorrectString 0.005 s
deserializeTheStringNull 0.001 s
serializeAndDeserializeLocalDate 0.002 s
serializeAndDeserializeNotification 0.002 s
serializeAndDeserializeNullLocalDateTime 0 s
deserializeNullEventType 0.002 s
serializeNull 0 s
serializeAndDeserializeWrongClass 0.001 s
serializeAndDeserializeNullLocalDate 0 s
serializeAndDeserializeLocalDateTime 0.001 s
deserializeNotificationWithEmptyEvent 0 s
deserializeNullSerializedEvent 0.001 s
serializeAndDeserializeEvent 0.001 s

NotificationLogTest

constructorNullPreviousNotificationLogId 0 s
constructor 0.001 s
constructorNullCurrentNotificationLogId 0.001 s
testToString 0.001 s
constructorNullNotifications 0 s
constructorNullNextNotificationLogId 0 s
constructorDefensiveCopyOfNotifications 0.001 s

SimpleDomainEventPublisherTest

publishWithoutSubscribers 0.001 s
publishWithSubscriber 0.001 s
subscribeNullSubscriber 0.001 s
publishNullEvent 0 s
createPublisherWithNullSubscribers 0 s
subscribe 0 s
correctSubscribersGetNotified 0.001 s

NotificationResourceTest

constructorNullNotificationService 0.063 s
getNotificationLogServiceThrowsIllegalArgumentException 0.020 s
getNotificationLog 0.066 s
getNotificationLogMalformedNotificationLogString 0.002 s
getCurrentNotificationLogFullBatch 0.010 s
getNotificationLogServiceThrowsNullPointerException 0.002 s
getCurrentNotificationLogServiceThrowsIllegalArgumentException 0.003 s
getCurrentNotificationLogServiceThrowsNullPointerException 0.003 s
getNotificationLogNullNotificationLogString 0.003 s
getCurrentNotificationLogFullBatchPlusOne 0.008 s
constructorNullObjectSerializer 0.002 s
getCurrentNotificationLogNoNotifications 0.001 s

LoggingDomainEventSubscriberTest

eventType 0.004 s
handleEvent 0.002 s

DomainEventTest

constructor 0.001 s
constructorVersion 0 s
testToString 0.004 s
constructorDateTime 0.001 s
constructorNullDate 0.001 s
constructorDateTimeVersion 0 s
constructorNullDateVersion 0 s
testEqualsAndHashCode 0.277 s

EventStoreTest

constructorNullRepository 0.002 s
toDomainEvent 0.001 s
allEventsSince 0.008 s
verifyLogging 0.003 s
toDomainEventNull 0.001 s
constructorNullSerializer 0.001 s
toDomainEventUnknownClass 0.001 s
allEventsSinceWithNoEvents 0 s
addNullEvent 0.001 s
addOneEvent 0.001 s
allEventsBetween 0.003 s

RabbitMQNotificationPublisherTest

publishNotificationsShouldThrowOriginalExceptionIfBasicPublishFails 0.170 s
publishNotificationsShouldCallChannelBasicPublish 0.001 s
creatingPublisherWithNullConnectionFactoryShouldFail 0.001 s
verifyLogging 0.002 s
creatingPublisherWithNullObjectSerializerShouldFail 0.001 s
publishNotificationsShouldThrowIOExceptionIfConnectionTimesOut 0.001 s

NotificationRepresentationTest

constructor 0.004 s
packagePrivateConstructorLeavesAllFieldsWithDefaultValues 0.001 s
constructorNullNotification 0.001 s
constructorNullSerializer 0.021 s
constructorEventWithNullOccurredOn 0.005 s

KafkaNotificationPublisherTest

creatingPublisherWithNullKafkaTemplateShouldFail 0.002 s
verifyLogging 0.004 s
creatingPublisherWithNullObjectSerializerShouldFail 0.001 s
publishingNotificationShouldCallKafkaTemplateSend 0.005 s

JpaRepositoryTest

methodWithoutQueryString 0.001 s
interfaceMethodWithoutQueryString 0.001 s
bar 0.002 s
baz 0.001 s
foo 0.001 s
unknownMethod 0.001 s

ResourceTest

parseMalformedUrl 0.002 s
parseDate 0.002 s
handleErrorOriginalExceptionNull 0.002 s
commaSeparatedStringToListWithOnlyWhitespaceGivesEmptyList 0.001 s
nullCommaSeparatedStringToListGivesEmptyList 0 s
parseMalformedDate 0.002 s
parseNullUrl 0.001 s
handleErrorIllegalArgumentException 0.002 s
handleErrorNullPointerException 0.002 s
commaSeparatedStringToList 0 s
parseUrl 0.016 s
handleErrorMethodNameNull 0.001 s
handleErrorFileNotFoundException 0.001 s
parseNullDate 0.001 s
commaSeparatedStringToListWithOnlyCommaGivesEmptyList 0.001 s

TestTimeServiceTest

setNullDates 0.001 s
nowBeforeCallingSetDates 0.001 s
nowDateTimes 0.001 s
setEmptyDates 0 s
nowDateTimeStrings 0.001 s
setNullDateStrings 0.001 s
setEmptyDateStrings 0 s
setMalformedDateString 0 s

CommonDomainRegistryTest

registryWithoutTimeServiceBeanShouldThrowException 0.002 s
initializedRegistryFindsNecessaryServices 0.003 s
uninitializedRegistryShouldThrowException 0.001 s
registryWithoutDomainEventPublisherBeanShouldThrowException 0.001 s

NotificationLogRepresentationTest

constructor 0.001 s
constructorNullNotificationLog 0.002 s
packagePrivateConstructorLeavesAllFieldsWithDefaultValues 0 s
constructorNullSerializer 0.012 s

EventStoringSubscriberTest

eventType 0.001 s
handleEvent 0.001 s

ResourceUtilTest

webApplicationExceptionNullString 0.001 s
webApplicationExceptionStringNullStatus 0.004 s
webApplicationExceptionThrowableNullStatus 0.001 s
cacheControl 0.002 s
serverError 0.001 s
webApplicationExceptionString 0.001 s
badRequest 0.003 s
notFoundNull 0 s
webApplicationExceptionNullThrowable 0.001 s
serverErrorNull 0 s
notFound 0 s
webApplicationExceptionThrowable 0.001 s
noCache 0 s
badRequestNull 0 s

StoredEventTest

constructor 0.001 s
constructorNullOccurredOn 0 s
testToString 0 s
constructorNullEventBody 0.001 s
constructorNullEventType 0.001 s

NotificationTest

create 0 s
testToString 0.004 s
createEventWithNullOccurredOn 0 s
createNullEvent 0.001 s
createNullStoredEventId 0.001 s