Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
308 0 0 0 100% 2.014 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.302 s
com.reallifedeveloper.common.resource 35 0 0 0 100% 0.218 s
com.reallifedeveloper.common.domain.event 29 0 0 0 100% 0.081 s
com.reallifedeveloper.common.infrastructure.messaging 15 0 0 0 100% 0.566 s
com.reallifedeveloper.common.application.eventstore 18 0 0 0 100% 0.048 s
com.reallifedeveloper.common.resource.notification 21 0 0 0 100% 0.077 s
com.reallifedeveloper.common.application.notification 47 0 0 0 100% 0.076 s
com.reallifedeveloper.common.resource.documentation 10 0 0 0 100% 0.028 s
com.reallifedeveloper.common.infrastructure.jmx 24 0 0 0 100% 0.277 s
com.reallifedeveloper.common.domain.registry 4 0 0 0 100% 0.007 s
com.reallifedeveloper.common.infrastructure.persistence 13 0 0 0 100% 0.290 s
com.reallifedeveloper.common.domain 30 0 0 0 100% 0.044 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
GsonNotificationReaderTest 44 0 0 0 100% 0.071 s
Markdown4jHtmlProducerTest 4 0 0 0 100% 0.121 s
GsonObjectSerializerTest 14 0 0 0 100% 0.110 s

com.reallifedeveloper.common.resource

- Class Tests Errors Failures Skipped Success Rate Time
ResourceUtilTest 14 0 0 0 100% 0.019 s
TestResourceTest 6 0 0 0 100% 0.158 s
ResourceTest 15 0 0 0 100% 0.041 s

com.reallifedeveloper.common.domain.event

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

com.reallifedeveloper.common.infrastructure.messaging

- Class Tests Errors Failures Skipped Success Rate Time
RabbitMQNotificationPublisherTest 6 0 0 0 100% 0.123 s
KafkaNotificationPublisherTest 4 0 0 0 100% 0.326 s
KafkaSecurityConfigurationTest 5 0 0 0 100% 0.117 s

com.reallifedeveloper.common.application.eventstore

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

com.reallifedeveloper.common.resource.notification

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

com.reallifedeveloper.common.application.notification

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

com.reallifedeveloper.common.resource.documentation

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

com.reallifedeveloper.common.infrastructure.jmx

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

com.reallifedeveloper.common.domain.registry

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

com.reallifedeveloper.common.infrastructure.persistence

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

com.reallifedeveloper.common.domain

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

Test Cases

[Summary] [Package List] [Test Cases]

NotificationServiceTest

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

RabbitMQNotificationPublisherTest

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

EventSavingSubscriberTest

eventType 0.001 s
clear 0 s
handleEvent 0 s

NotificationLogIdTest

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

DocumentationResourceTest

getDocumentationDefaultDocumentDoesNotExist 0.007 s
constructorNonExistingResourceDir 0.001 s
getDocumentationNamedDocument 0.001 s
redirectWihoutUriInfoThrowsException 0 s
redirect 0.004 s
constructorNullHtmlProducer 0.001 s
getDocumentationNamedDocumentDoesNotExist 0.001 s
constructorNullResourceDir 0.001 s
getDocumentationDefaultDocument 0.001 s
getDocumentationNamedBinaryDocument 0.008 s

TimestampedJpaEntityTest

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

SimpleDomainEventPublisherTest

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

DomainEventTest

constructor 0.001 s
constructorVersion 0.001 s
testToString 0.001 s
constructorDateTime 0 s
constructorNullDate 0 s
constructorDateTimeVersion 0 s
constructorNullDateVersion 0.001 s
testEqualsAndHashCode 0.049 s

LoggingDomainEventSubscriberTest

eventType 0.001 s
handleEvent 0.001 s

GsonNotificationReaderTest

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

Markdown4jHtmlProducerTest

produceNull 0.018 s
produceResourceNotFound 0.003 s
produce 0.004 s
canHandle 0.001 s

KafkaNotificationPublisherTest

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

ResourceUtilTest

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

EventStoringSubscriberTest

eventType 0.001 s
handleEvent 0.001 s

NotificationPublisherTaskTest

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

NotificationTest

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

GsonObjectSerializerTest

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

Log4jConfiguratorTest

getLogLevelNull 0.020 s
setLogLevelNonExistingLoggerName 0.008 s
setLogLevel 0.012 s
getLogLevel 0.007 s
setLogLevelBlankLoggerName 0.007 s
setLogLevelIncorrectLevel 0.007 s
setLogLevelNullLoggerName 0.006 s
getLogLevelNonExistingLoggerName 0.007 s
getLoggers 0.007 s
setLogLevelNullLevel 0.006 s

NotificationLogTest

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

ServletContextSystemInfoTest

testSetServletContext 0.004 s
testSetServletContextWithNullContext 0.002 s

ThreadLocalDomainEventPublisherTest

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

LogUtilTest

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

TestResourceTest

postRequestWithPath 0.033 s
putRequestNotFound 0.006 s
getWithoutProperlyConfiguredResponse 0.016 s
getRequestRoot 0.005 s
postRequestWithMuchData 0.005 s
multipleRequests 0.013 s

NotificationResourceTest

constructorNullNotificationService 0 s
getNotificationLogServiceThrowsIllegalArgumentException 0.001 s
getNotificationLog 0.025 s
getNotificationLogMalformedNotificationLogString 0.003 s
getCurrentNotificationLogFullBatch 0.005 s
getNotificationLogServiceThrowsNullPointerException 0.001 s
getCurrentNotificationLogServiceThrowsIllegalArgumentException 0.001 s
getCurrentNotificationLogServiceThrowsNullPointerException 0 s
getNotificationLogNullNotificationLogString 0.001 s
getCurrentNotificationLogFullBatchPlusOne 0.005 s
constructorNullObjectSerializer 0.001 s
getCurrentNotificationLogNoNotifications 0 s

NotificationLogRepresentationTest

constructor 0.007 s
constructorNullNotificationLog 0.003 s
packagePrivateConstructorLeavesAllFieldsWithDefaultValues 0 s
constructorNullSerializer 0.001 s

JpaRepositoryTest

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

StoredEventTest

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

ErrorHandlingTest

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

NotificationFactoryTest

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

ResourceTest

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

NotificationRepresentationTest

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

CommonDomainRegistryTest

registryWithoutTimeServiceBeanShouldThrowException 0.002 s
initializedRegistryFindsNecessaryServices 0.002 s
uninitializedRegistryShouldThrowException 0 s
registryWithoutDomainEventPublisherBeanShouldThrowException 0.001 s

ClockTimeServiceTest

now 0.001 s
setClock 0 s

TestTimeServiceTest

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

KafkaSecurityConfigurationTest

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

TomcatConnectionPoolConfiguratorTest

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

EventStoreTest

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