Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
57 0 0 0 100% 3.475 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
org.onehippo.forge.camel.component.hippo 42 0 0 0 100% 2.169 s
org.onehippo.forge.camel.scheduling 3 0 0 0 100% 0.203 s
org.onehippo.forge.camel.converter.hippo 2 0 0 0 100% 0.191 s
org.onehippo.forge.camel.converter.json 7 0 0 0 100% 0.908 s
org.onehippo.forge.camel.util 3 0 0 0 100% 0.004 s

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

org.onehippo.forge.camel.component.hippo

- Class Tests Errors Failures Skipped Success Rate Time
HippoEventConsumerTest 4 0 0 0 100% 1.867 s
HippoEventEndpointTest 11 0 0 0 100% 0.057 s
HippoEventComponentTest 2 0 0 0 100% 0.010 s
HippoEventConverterTest 7 0 0 0 100% 0.019 s
HippoEventConsumerUnitTest 10 0 0 0 100% 0.172 s
HippoEventMessageTest 8 0 0 0 100% 0.044 s

org.onehippo.forge.camel.scheduling

- Class Tests Errors Failures Skipped Success Rate Time
DefaultCamelRepositoryJobTest 3 0 0 0 100% 0.203 s

org.onehippo.forge.camel.converter.hippo

- Class Tests Errors Failures Skipped Success Rate Time
RepositoryJobExecutionContextConverterTest 2 0 0 0 100% 0.191 s

org.onehippo.forge.camel.converter.json

- Class Tests Errors Failures Skipped Success Rate Time
JSONConverterTest 3 0 0 0 100% 0.014 s
CamelTypeConverterIntegrationTest 4 0 0 0 100% 0.894 s

org.onehippo.forge.camel.util

- Class Tests Errors Failures Skipped Success Rate Time
CamelContextUtilsTest 3 0 0 0 100% 0.004 s

Test Cases

[Summary] [Package List] [Test Cases]

JSONConverterTest

toString_returnsJsonString 0.003 s
toJSON_parsesJsonString 0.007 s
toInputStream_returnsReadableStream 0.002 s

HippoEventConsumerTest

testNonMatchingCategoryIsFiltered 0.563 s
testEventMatchingSecondUserValueIsForwarded 1.034 s
testNonMatchingUserIsFiltered 0.219 s
testHippoEventConsumer 0.047 s

HippoEventEndpointTest

hasProperty_existingKey_returnsTrue 0.005 s
createProducer_throwsUnsupportedOperationException 0.005 s
getProperty_missingKey_returnsNull 0.007 s
createConsumer_returnsHippoEventConsumer 0.005 s
getPropertyNameSet_returnsAllKeys 0.004 s
hasProperty_missingKey_returnsFalse 0.004 s
isSingleton_returnsTrue 0.003 s
getProperty_existingKey_returnsValue 0.004 s
hasProperty_nullPropertiesMap_returnsFalse 0.003 s
getPropertyNameSet_nullPropertiesMap_returnsEmptySet 0.004 s
getProperty_nullPropertiesMap_returnsNull 0.004 s

RepositoryJobExecutionContextConverterTest

toJSON_convertsAllAttributes 0.160 s
toJSON_emptyContext_returnsEmptyJSONObject 0.002 s

HippoEventComponentTest

createEndpoint_withProperties_copiesAndClearsOriginal 0.006 s
createEndpoint_nullProperties_returnsEndpointWithEmptyProps 0.003 s

HippoEventConverterTest

toJSONObject_workflowEventWithNullArguments_putsEmptyArray 0.005 s
testHippoWorkflowEvent 0.007 s
testHippoEvent 0.001 s
toJSONObject_workflowEventWithNoException_noExceptionKey 0.001 s
testFolderWorkflowEvent 0.002 s
toJSONObject_nullEvent_returnsEmptyJSON 0.001 s
testHippoSecurityEvent 0.001 s

HippoEventConsumerUnitTest

doStart_persistedConsumerWithoutChannelName_throwsRuntimeCamelException 0.045 s
isConsumable_matchingFirstValue_returnsTrue 0.018 s
handleHippoEvent_messageBodyCreationThrows_wrapsInRCE 0.011 s
isConsumable_missingPropertyInJson_returnsFalse 0.011 s
onHippoEvent_delegatesToHandleHippoEvent 0.011 s
isConsumable_matchingSecondValueInList_returnsTrue 0.011 s
isConsumable_skipsPersistedOptionParams 0.013 s
isConsumable_nonMatchingCategory_returnsFalse 0.009 s
handleHippoEvent_processorThrowsRCE_rethrows 0.021 s
persistedEventListener_propertiesAndDelegates 0.012 s

CamelTypeConverterIntegrationTest

convertStringToJsonObject 0.377 s
convertJsonObjectToInputStream 0.016 s
convertRepositoryJobExecutionContextToJsonObject 0.018 s
convertJsonObjectToString 0.015 s

DefaultCamelRepositoryJobTest

execute_validUri_noRegisteredCamelContext_throwsRuntimeException 0.196 s
execute_nullEndpointUri_throwsRepositoryException 0.002 s
execute_blankEndpointUri_throwsRepositoryException 0.002 s

CamelContextUtilsTest

invokeManagedCamelContextMBean_namedContextNotFound_throwsRuntimeException 0.001 s
invokeManagedCamelContextMBean_noContextId_noRegisteredContext_throwsRuntimeException 0.001 s
invokeManagedCamelContextMBean_malformedContextId_throwsRuntimeException 0.001 s

HippoEventMessageTest

toString_withoutBody_includesIdentityHash 0.007 s
copyFrom_nullBody_setDirectly 0.005 s
copyFrom_nonJsonObjectBody_setDirectly 0.006 s
copyFrom_copiesHeaders 0.004 s
copyFrom_jsonObjectBody_serialisedToString 0.004 s
toString_withBody_includesBodyContent 0.004 s
copyFrom_sameInstance_isNoOp 0.004 s
constructor_withExchange_createsMessage 0.004 s