Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
308 0 0 0 100% 3.273 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.294 s
com.reallifedeveloper.common.infrastructure 62 0 0 0 100% 0.521 s
com.reallifedeveloper.common.domain.event 29 0 0 0 100% 0.129 s
com.reallifedeveloper.common.infrastructure.messaging 15 0 0 0 100% 1.065 s
com.reallifedeveloper.common.application.eventstore 18 0 0 0 100% 0.056 s
com.reallifedeveloper.common.resource.notification 21 0 0 0 100% 0.134 s
com.reallifedeveloper.common.application.notification 47 0 0 0 100% 0.134 s
com.reallifedeveloper.common.infrastructure.jmx 24 0 0 0 100% 0.729 s
com.reallifedeveloper.common.resource.documentation 10 0 0 0 100% 0.025 s
com.reallifedeveloper.common.domain.registry 4 0 0 0 100% 0.011 s
com.reallifedeveloper.common.domain 30 0 0 0 100% 0.032 s
com.reallifedeveloper.common.infrastructure.persistence 13 0 0 0 100% 0.143 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.014 s
TestResourceTest 6 0 0 0 100% 0.254 s
ResourceTest 15 0 0 0 100% 0.026 s

com.reallifedeveloper.common.infrastructure

- Class Tests Errors Failures Skipped Success Rate Time
GsonObjectSerializerTest 14 0 0 0 100% 0.045 s
GsonNotificationReaderTest 44 0 0 0 100% 0.463 s
Markdown4jHtmlProducerTest 4 0 0 0 100% 0.013 s

com.reallifedeveloper.common.domain.event

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

com.reallifedeveloper.common.infrastructure.messaging

- Class Tests Errors Failures Skipped Success Rate Time
KafkaNotificationPublisherTest 4 0 0 0 100% 0.647 s
KafkaSecurityConfigurationTest 5 0 0 0 100% 0.199 s
RabbitMQNotificationPublisherTest 6 0 0 0 100% 0.219 s

com.reallifedeveloper.common.application.eventstore

- Class Tests Errors Failures Skipped Success Rate Time
EventStoreTest 11 0 0 0 100% 0.037 s
EventStoringSubscriberTest 2 0 0 0 100% 0.010 s
StoredEventTest 5 0 0 0 100% 0.009 s

com.reallifedeveloper.common.resource.notification

- Class Tests Errors Failures Skipped Success Rate Time
NotificationResourceTest 12 0 0 0 100% 0.120 s
NotificationLogRepresentationTest 4 0 0 0 100% 0.005 s
NotificationRepresentationTest 5 0 0 0 100% 0.009 s

com.reallifedeveloper.common.application.notification

- Class Tests Errors Failures Skipped Success Rate Time
NotificationPublisherTaskTest 5 0 0 0 100% 0.013 s
NotificationLogTest 7 0 0 0 100% 0.020 s
NotificationFactoryTest 5 0 0 0 100% 0.014 s
NotificationTest 5 0 0 0 100% 0.011 s
NotificationLogIdTest 14 0 0 0 100% 0.022 s
NotificationServiceTest 11 0 0 0 100% 0.054 s

com.reallifedeveloper.common.infrastructure.jmx

- Class Tests Errors Failures Skipped Success Rate Time
ServletContextSystemInfoTest 2 0 0 0 100% 0.042 s
TomcatConnectionPoolConfiguratorTest 12 0 0 0 100% 0.248 s
Log4jConfiguratorTest 10 0 0 0 100% 0.439 s

com.reallifedeveloper.common.resource.documentation

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

com.reallifedeveloper.common.domain.registry

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

com.reallifedeveloper.common.domain

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

com.reallifedeveloper.common.infrastructure.persistence

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

Test Cases

[Summary] [Package List] [Test Cases]

ResourceUtilTest

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

TestTimeServiceTest

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

KafkaNotificationPublisherTest

creatingPublisherWithNullKafkaTemplateShouldFail 0.004 s
verifyLogging 0.015 s
creatingPublisherWithNullObjectSerializerShouldFail 0.001 s
publishingNotificationShouldCallKafkaTemplateSend 0.006 s

NotificationPublisherTaskTest

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

TestResourceTest

postRequestWithPath 0.059 s
putRequestNotFound 0.008 s
getWithoutProperlyConfiguredResponse 0.013 s
getRequestRoot 0.006 s
postRequestWithMuchData 0.007 s
multipleRequests 0.014 s

GsonObjectSerializerTest

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

ErrorHandlingTest

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

TimestampedJpaEntityTest

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

EventStoreTest

constructorNullRepository 0.001 s
toDomainEvent 0.003 s
allEventsSince 0.004 s
verifyLogging 0.004 s
toDomainEventNull 0.001 s
constructorNullSerializer 0.001 s
toDomainEventUnknownClass 0.006 s
allEventsSinceWithNoEvents 0.001 s
addNullEvent 0.001 s
addOneEvent 0.001 s
allEventsBetween 0.002 s

SimpleDomainEventPublisherTest

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

GsonNotificationReaderTest

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

NotificationResourceTest

constructorNullNotificationService 0.024 s
getNotificationLogServiceThrowsIllegalArgumentException 0.018 s
getNotificationLog 0.048 s
getNotificationLogMalformedNotificationLogString 0.001 s
getCurrentNotificationLogFullBatch 0.006 s
getNotificationLogServiceThrowsNullPointerException 0.001 s
getCurrentNotificationLogServiceThrowsIllegalArgumentException 0 s
getCurrentNotificationLogServiceThrowsNullPointerException 0.001 s
getNotificationLogNullNotificationLogString 0.001 s
getCurrentNotificationLogFullBatchPlusOne 0.004 s
constructorNullObjectSerializer 0.001 s
getCurrentNotificationLogNoNotifications 0.001 s

EventStoringSubscriberTest

eventType 0.002 s
handleEvent 0.003 s

NotificationLogTest

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

NotificationFactoryTest

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

NotificationTest

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

StoredEventTest

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

ClockTimeServiceTest

now 0.001 s
setClock 0 s

NotificationLogRepresentationTest

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

LogUtilTest

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

KafkaSecurityConfigurationTest

applySecurityConfigurationWithTruststoreLocationSupportsClasspathValue 0.193 s
applySecurityConfigurationStoresTheProperty 0.001 s
applySecurityConfigurationTwiceWithSamePropertyShouldFail 0.001 s
applySecurityConfigurationWithTruststoreLocationFailsIfClasspathResourceDoesNotExist 0.001 s
applySecurityConfigurationWithTruststoreLocationSupportsNonClasspathValue 0.001 s

ServletContextSystemInfoTest

testSetServletContext 0.036 s
testSetServletContextWithNullContext 0.003 s

Markdown4jHtmlProducerTest

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

LoggingDomainEventSubscriberTest

eventType 0.001 s
handleEvent 0 s

NotificationLogIdTest

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

NotificationRepresentationTest

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

NotificationServiceTest

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

TomcatConnectionPoolConfiguratorTest

constructorNullDataSource 0.013 s
getUrl 0.001 s
testIdle 0.212 s
getWaitCount 0.001 s
getDriverClassName 0.001 s
getIdle 0.002 s
getSize 0.002 s
purge 0.001 s
getActive 0.001 s
checkIdle 0.001 s
checkAbandoned 0.001 s
purgeOnReturn 0.002 s

JpaRepositoryTest

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

RabbitMQNotificationPublisherTest

publishNotificationsShouldThrowOriginalExceptionIfBasicPublishFails 0.197 s
publishNotificationsShouldCallChannelBasicPublish 0.003 s
creatingPublisherWithNullConnectionFactoryShouldFail 0.002 s
verifyLogging 0.003 s
creatingPublisherWithNullObjectSerializerShouldFail 0.003 s
publishNotificationsShouldThrowIOExceptionIfConnectionTimesOut 0.001 s

DomainEventTest

constructor 0 s
constructorVersion 0 s
testToString 0.007 s
constructorDateTime 0.001 s
constructorNullDate 0.001 s
constructorDateTimeVersion 0.001 s
constructorNullDateVersion 0.001 s
testEqualsAndHashCode 0.079 s

ResourceTest

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

DocumentationResourceTest

getDocumentationDefaultDocumentDoesNotExist 0.005 s
constructorNonExistingResourceDir 0.001 s
getDocumentationNamedDocument 0.002 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.006 s

ThreadLocalDomainEventPublisherTest

subscribingSubscriberNotAllowed 0.003 s
threadLocalSubscribers 0.003 s
reset 0.003 s
canSubscribeToAllDomainEvents 0.001 s
simpleSubscription 0.001 s
correctSubscribersGetNotified 0.001 s
resettingSubscriberNotAllowed 0.001 s
noSubscribers 0.001 s
publishingSubscriberNotAllowed 0.001 s

EventSavingSubscriberTest

eventType 0.002 s
clear 0 s
handleEvent 0 s

CommonDomainRegistryTest

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

Log4jConfiguratorTest

getLogLevelNull 0.290 s
setLogLevelNonExistingLoggerName 0.020 s
setLogLevel 0.020 s
getLogLevel 0.013 s
setLogLevelBlankLoggerName 0.012 s
setLogLevelIncorrectLevel 0.013 s
setLogLevelNullLoggerName 0.015 s
getLogLevelNonExistingLoggerName 0.014 s
getLoggers 0.013 s
setLogLevelNullLevel 0.013 s