Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
308 0 0 0 100% 2.891 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.resource 35 0 0 0 100% 0.416 s
com.reallifedeveloper.common.infrastructure 62 0 0 0 100% 0.084 s
com.reallifedeveloper.common.domain.event 29 0 0 0 100% 0.291 s
com.reallifedeveloper.common.resource.notification 21 0 0 0 100% 0.073 s
com.reallifedeveloper.common.infrastructure.messaging 15 0 0 0 100% 0.672 s
com.reallifedeveloper.common.application.eventstore 18 0 0 0 100% 0.397 s
com.reallifedeveloper.common.application.notification 47 0 0 0 100% 0.154 s
com.reallifedeveloper.common.infrastructure.jmx 24 0 0 0 100% 0.369 s
com.reallifedeveloper.common.resource.documentation 10 0 0 0 100% 0.033 s
com.reallifedeveloper.common.domain.registry 4 0 0 0 100% 0.338 s
com.reallifedeveloper.common.domain 30 0 0 0 100% 0.043 s
com.reallifedeveloper.common.infrastructure.persistence 13 0 0 0 100% 0.021 s

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

com.reallifedeveloper.common.resource

- Class Tests Errors Failures Skipped Success Rate Time
ResourceUtilTest 14 0 0 0 100% 0.015 s
ResourceTest 15 0 0 0 100% 0.023 s
TestResourceTest 6 0 0 0 100% 0.378 s

com.reallifedeveloper.common.infrastructure

- Class Tests Errors Failures Skipped Success Rate Time
GsonNotificationReaderTest 44 0 0 0 100% 0.051 s
GsonObjectSerializerTest 14 0 0 0 100% 0.029 s
Markdown4jHtmlProducerTest 4 0 0 0 100% 0.004 s

com.reallifedeveloper.common.domain.event

- Class Tests Errors Failures Skipped Success Rate Time
SimpleDomainEventPublisherTest 7 0 0 0 100% 0.007 s
ThreadLocalDomainEventPublisherTest 9 0 0 0 100% 0.016 s
EventSavingSubscriberTest 3 0 0 0 100% 0.004 s
LoggingDomainEventSubscriberTest 2 0 0 0 100% 0.004 s
DomainEventTest 8 0 0 0 100% 0.260 s

com.reallifedeveloper.common.resource.notification

- Class Tests Errors Failures Skipped Success Rate Time
NotificationLogRepresentationTest 4 0 0 0 100% 0.007 s
NotificationResourceTest 12 0 0 0 100% 0.060 s
NotificationRepresentationTest 5 0 0 0 100% 0.006 s

com.reallifedeveloper.common.infrastructure.messaging

- Class Tests Errors Failures Skipped Success Rate Time
RabbitMQNotificationPublisherTest 6 0 0 0 100% 0.400 s
KafkaSecurityConfigurationTest 5 0 0 0 100% 0.140 s
KafkaNotificationPublisherTest 4 0 0 0 100% 0.132 s

com.reallifedeveloper.common.application.eventstore

- Class Tests Errors Failures Skipped Success Rate Time
EventStoringSubscriberTest 2 0 0 0 100% 0.309 s
EventStoreTest 11 0 0 0 100% 0.080 s
StoredEventTest 5 0 0 0 100% 0.008 s

com.reallifedeveloper.common.application.notification

- Class Tests Errors Failures Skipped Success Rate Time
NotificationLogTest 7 0 0 0 100% 0.017 s
NotificationTest 5 0 0 0 100% 0.033 s
NotificationPublisherTaskTest 5 0 0 0 100% 0.015 s
NotificationLogIdTest 14 0 0 0 100% 0.018 s
NotificationServiceTest 11 0 0 0 100% 0.047 s
NotificationFactoryTest 5 0 0 0 100% 0.024 s

com.reallifedeveloper.common.infrastructure.jmx

- Class Tests Errors Failures Skipped Success Rate Time
TomcatConnectionPoolConfiguratorTest 12 0 0 0 100% 0.205 s
Log4jConfiguratorTest 10 0 0 0 100% 0.155 s
ServletContextSystemInfoTest 2 0 0 0 100% 0.009 s

com.reallifedeveloper.common.resource.documentation

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

com.reallifedeveloper.common.domain.registry

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

com.reallifedeveloper.common.domain

- Class Tests Errors Failures Skipped Success Rate Time
ClockTimeServiceTest 2 0 0 0 100% 0.004 s
LogUtilTest 6 0 0 0 100% 0.009 s
ErrorHandlingTest 14 0 0 0 100% 0.019 s
TestTimeServiceTest 8 0 0 0 100% 0.011 s

com.reallifedeveloper.common.infrastructure.persistence

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

Test Cases

[Summary] [Package List] [Test Cases]

ResourceUtilTest

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

NotificationLogRepresentationTest

constructor 0 s
constructorNullNotificationLog 0 s
packagePrivateConstructorLeavesAllFieldsWithDefaultValues 0 s
constructorNullSerializer 0 s

SimpleDomainEventPublisherTest

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

RabbitMQNotificationPublisherTest

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

ResourceTest

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

KafkaSecurityConfigurationTest

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

NotificationLogTest

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

EventStoringSubscriberTest

eventType 0.017 s
handleEvent 0.026 s

ThreadLocalDomainEventPublisherTest

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

ClockTimeServiceTest

now 0.002 s
setClock 0 s

LogUtilTest

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

EventStoreTest

constructorNullRepository 0.005 s
toDomainEvent 0.002 s
allEventsSince 0.009 s
verifyLogging 0.026 s
toDomainEventNull 0.003 s
constructorNullSerializer 0.001 s
toDomainEventUnknownClass 0.001 s
allEventsSinceWithNoEvents 0.002 s
addNullEvent 0.001 s
addOneEvent 0.003 s
allEventsBetween 0.005 s

NotificationResourceTest

constructorNullNotificationService 0.002 s
getNotificationLogServiceThrowsIllegalArgumentException 0.001 s
getNotificationLog 0.023 s
getNotificationLogMalformedNotificationLogString 0.002 s
getCurrentNotificationLogFullBatch 0.009 s
getNotificationLogServiceThrowsNullPointerException 0.002 s
getCurrentNotificationLogServiceThrowsIllegalArgumentException 0.001 s
getCurrentNotificationLogServiceThrowsNullPointerException 0.001 s
getNotificationLogNullNotificationLogString 0.001 s
getCurrentNotificationLogFullBatchPlusOne 0.005 s
constructorNullObjectSerializer 0.002 s
getCurrentNotificationLogNoNotifications 0.001 s

NotificationTest

create 0.001 s
testToString 0.024 s
createEventWithNullOccurredOn 0.002 s
createNullEvent 0.002 s
createNullStoredEventId 0.002 s

TomcatConnectionPoolConfiguratorTest

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

ErrorHandlingTest

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

KafkaNotificationPublisherTest

creatingPublisherWithNullKafkaTemplateShouldFail 0.002 s
verifyLogging 0.002 s
creatingPublisherWithNullObjectSerializerShouldFail 0 s
publishingNotificationShouldCallKafkaTemplateSend 0.001 s

NotificationPublisherTaskTest

run 0.003 s
constructorPublicationChannelNull 0.002 s
runWithNullPointerException 0.002 s
constructorNotificationServiceNull 0.001 s
runWithIOException 0.005 s

NotificationLogIdTest

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

EventSavingSubscriberTest

eventType 0.001 s
clear 0 s
handleEvent 0.001 s

LoggingDomainEventSubscriberTest

eventType 0.002 s
handleEvent 0.002 s

StoredEventTest

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

DomainEventTest

constructor 0.002 s
constructorVersion 0 s
testToString 0.003 s
constructorDateTime 0 s
constructorNullDate 0.001 s
constructorDateTimeVersion 0.001 s
constructorNullDateVersion 0.001 s
testEqualsAndHashCode 0.246 s

NotificationServiceTest

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

Log4jConfiguratorTest

getLogLevelNull 0.029 s
setLogLevelNonExistingLoggerName 0.025 s
setLogLevel 0.020 s
getLogLevel 0.013 s
setLogLevelBlankLoggerName 0.011 s
setLogLevelIncorrectLevel 0.012 s
setLogLevelNullLoggerName 0.011 s
getLogLevelNonExistingLoggerName 0.011 s
getLoggers 0.011 s
setLogLevelNullLevel 0.009 s

CommonDomainRegistryTest

registryWithoutTimeServiceBeanShouldThrowException 0.313 s
initializedRegistryFindsNecessaryServices 0.020 s
uninitializedRegistryShouldThrowException 0.001 s
registryWithoutDomainEventPublisherBeanShouldThrowException 0.001 s

GsonNotificationReaderTest

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

GsonObjectSerializerTest

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

ServletContextSystemInfoTest

testSetServletContext 0.007 s
testSetServletContextWithNullContext 0.001 s

TimestampedJpaEntityTest

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

NotificationFactoryTest

fromStoredEventWithSingleEventReturnsNotification 0.005 s
fromStoredEventWithMultipleEventsReturnsAList 0.009 s
instanceWithNullEventStoreShouldThrowException 0.001 s
fromStoredEventsWillNullListShouldThrowException 0.001 s
fromStoreventWithNullEventShouldThrowException 0 s

DocumentationResourceTest

getDocumentationDefaultDocumentDoesNotExist 0.003 s
constructorNonExistingResourceDir 0.001 s
getDocumentationNamedDocument 0.005 s
redirectWihoutUriInfoThrowsException 0.001 s
redirect 0.001 s
constructorNullHtmlProducer 0.001 s
getDocumentationNamedDocumentDoesNotExist 0.001 s
constructorNullResourceDir 0 s
getDocumentationDefaultDocument 0.001 s
getDocumentationNamedBinaryDocument 0.011 s

TestTimeServiceTest

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

JpaRepositoryTest

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

Markdown4jHtmlProducerTest

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

TestResourceTest

postRequestWithPath 0.086 s
putRequestNotFound 0.007 s
getWithoutProperlyConfiguredResponse 0.013 s
getRequestRoot 0.007 s
postRequestWithMuchData 0.010 s
multipleRequests 0.019 s

NotificationRepresentationTest

constructor 0.001 s
packagePrivateConstructorLeavesAllFieldsWithDefaultValues 0 s
constructorNullNotification 0.001 s
constructorNullSerializer 0.001 s
constructorEventWithNullOccurredOn 0 s