Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
261000100%0.698

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


PackageTestsErrors FailuresSkippedSuccess RateTime
com.lexicalscope.fluentreflection.usecases24000100%0.057
com.lexicalscope.fluentreflection.bean.endtoend56000100%0.096
com.lexicalscope.fluentreflection.endtoend96000100%0.22
com.lexicalscope.fluentreflection71000100%0.28
com.lexicalscope.fluentreflection.dynamicproxy.endtoend14000100%0.045

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

com.lexicalscope.fluentreflection.usecases

ClassTestsErrors FailuresSkippedSuccess RateTime
TestCanFindAllAnnotatedFields1000100%0.006
TestIdentifyMembersByVisibiity8000100%0.004
TestFindAllBeanMethods2000100%0.006
TestJoorExamples3000100%0.012
TestCanReadAndSetFields8000100%0.005
TestCanCallAnnotatedMethodsInTheRightOrder2000100%0.024

com.lexicalscope.fluentreflection.bean.endtoend

ClassTestsErrors FailuresSkippedSuccess RateTime
TestBeanMap37000100%0.03
TestBeanMapBuilder7000100%0.024
TestMapBeanWithNoPrefixes6000100%0.025
TestMapBean6000100%0.017

com.lexicalscope.fluentreflection.endtoend

ClassTestsErrors FailuresSkippedSuccess RateTime
TestReflectedClass3000100%0.002
TestRawConstructionByReflection7000100%0.006
TestReflectedClassFields20000100%0.027
TestReflectionOnConstructors1000100%0.001
TestReflectedClassInstanceMethod8000100%0.007
TestReflectionOnInherentedMethods9000100%0.006
TestReflectionOnInterface6000100%0.014
TestReflectedClassStaticMethods5000100%0.007
TestReflectedObject9000100%0.008
TestReflectedMethodToString16000100%0.112
TestReflectionOnTypeHierarchy5000100%0.017
TestReflectionOnBoundMethods1000100%0.001
TestReflectionMatchersArgumentTypes1000100%0.004
TestReflectionOnAnnotatedMethods4000100%0.006
TestReflectionMatchersHasReturnType1000100%0.002

com.lexicalscope.fluentreflection.dynamicproxy.endtoend

ClassTestsErrors FailuresSkippedSuccess RateTime
TestFluentDynamicProxy7000100%0.027
TestLightweightFluentDynamicProxy7000100%0.018

Test Cases

[Summary] [Package List] [Test Cases]

TestFluentDynamicProxy

canProxyMultipleMethods0.006
canReturnValueFromProxiedMethod0.003
canReturnDifferentValuesFromEachProxiedMethod0.002
canDefineDefaultImplementationForUnmatchedMethods0.003
canThrowException0.004
canGetMethodArguments0.004
canGetBindUsingMethodArguments0.002

TestReflectedClass

hashCodeWorks0
equalsWorks0
canGetReflectedClassAsASuperType0.001

TestRawConstructionByReflection

constructUsingDefaultConstructor0.001
constructUsingOneArgumentConstructor0
constructUsingOneArgumentWithNullValueConstructor0
constructUsingTwoArgumentConstructor0
constructUsingTwoArgumentWithOneNullValueConstructor0
constructUsingTwoArgumentWithTwoNullValueConstructor0
constructUsingAnyConstructorIfMultipleMatchers0

TestMatcherReflectedTypeReflectingOn

matcherCanMatch0
matcherCanFailToMatch0
matcherDescriptionMakesSense0

TestBoundReflectedMethodImpl

bindingStaticMethodIsNotAllowed0.001
boundMethodToStringIsAllowed0.001
boundMethodReturnTypeIsAvailable0.001

TestBoundReflectedMemberImpl

isStaticIsDelegated0.003
isFinalIsDelegated0.001
visibilityIsDelegated0.001

TestMatcherConstructorReflectingOn

matcherCanMatch0.004
matcherCanFailToMatch0.001
matcherDescriptionMakesSense0

TestMatcherReflectedTypeReflectingOnAssignableFrom

testPrimativeType0

TestMatcherElementDeclaredBy

matcherCanMatch0.03
matcherCanFailToMatch0.002
matcherDescriptionMakesSense0.001

TestReflectedClassFields

canFindFieldByName0.001
canNotFindStaticFieldOfBoundObject0.001
canWriteField0
fieldDeclaringTypeIsCorrect0.001
finalFieldsAreMarkedAsFinal0
propertyNameIsAvailable0.001
fieldHasOneArgument0
publicFieldToStringIsUseful0
packageToStringIsUseful0.001
staticToStringIsUseful0
staticFinalToStringIsUseful0
boundToStringIsUseful0.002
boundEqualsIsTrueForTheSameInstance0.002
hashCodeIsTheSameForTheSameBoundInstance0.002
boundEqualsIsFalseForTheDifferentBoundInstances0
equalsIsTrueWhenTheFieldsAreTheSameAsEachOther0
equalsIsTrueWhenTheThatIsARandomOtherObject0
cannotReadFieldWithoutInstance0.004
cannotCallFieldWithTooManyArguments0
missingFieldThrowsException0.001

TestBeanMap

putNonExistentPropertyCausesException0
getNonExistentPropertyGivesNull0
propertyIsPresent0
initalValueOfPropertyIsZero0
settingValueOfPropertyUpdatesObject0
settingValueOfObjectUpdatesMap0
settingValueOfMapReturnsOldValue0
readOnlyPropertyIsPresent0
initalValueOfReadOnlyPropertyIsNull0
settingValueOfReadOnlyPropertyIsIgnoredByObject0
changesToReadOnlyPropertyAreReturnedByMap0
settingValueOfReadOnlyPropertyInMapReturnsOldValue0
writeOnlyPropertyIsPresent0
initalValueOfWriteOnlyPropertyIsNull0
settingValueOfWriteOnlyPropertyUpdatesObject0
changesToWriteOnlyPropertyAreIgnoredByMap0
settingValueOfWriteOnlyPropertyInMapReturnsNullValue0
clearIsUnsupported0
removeIsUnsupported0
containsInitialReadableValues0
containsChangedReadableValues0
doesNotContainsWriteOnlyValues0
valuesContainsAllValues0.001
keySetContainsAllProperties0
beanWithPropertiesGivesNotEmptyMap0
beanWithoutPropertiesGivesNotEmptyMap0
beanWithPropertiesHasCorrectSize0
beanWithoutPropertiesHasZeroSize0.001
putAllUpdatesWritableProperties0
putAllIgnoresReadOnlyProperties0
putAllWithNonExistentPropertyThrowsException0
entrySetContainsAllPropertiesAndReadableValues0.002
entrySetAllowsValuesToBeChanged0
cannotRemoveFromKeySet0
cannotRemoveFromKeySetIterator0.001
cannotRemoveFromEntrySet0.001
cannotRemoveFromEntrySetIterator0

TestReflectionOnConstructors

canFindConstructorsByTheNumberOfArguments0

TestLightweightFluentDynamicProxy

canProxyMultipleMethods0.003
canReturnValueFromProxiedMethod0.002
canReturnDifferentValuesFromEachProxiedMethod0.001
canDefineDefaultImplementationForUnmatchedMethods0.001
canThrowException0.002
canGetMethodArguments0.002
canGetBindUsingMethodArguments0.001

TestReflectedClassInstanceMethod

methodWithTwoArgumentsHasCorrectArgumentCount0
instanceMethodArgumentTypeIsCorrect0
simpleMethodCanBeCalled0
callingMethodWithReturnValueReturnsValue0
canCallMethodWithOneArgumentIfMultipleMatches0.001
methodWithTwoArgumentsCanBeCalled0
callingInstanceMethodWithoutInstanceFails0.001
callingInstanceMethodWithWrongInstanceType0.001

TestBeanMapBuilder

canSelectOnlyReadWriteProperties0.017
canSelectAllReadableProperties0.001
canSelectAllWritableProperties0.001
canSelectWritableOnlyProperties0.001
canSelectReadableOnlyProperties0.001
canLowercaseProperties0.001
beanDoesNotNeedGetAndSetPrefixes0.001

TestMatcherElementWithArguments

matcherCanMatch0.002
matcherCanFailToMatch0.001
matcherDescriptionMakesSense0.001

TestMapBeanWithNoPrefixes

mapCanBeQueriedViaInterface0.001
mapCanBeReadViaInterface0
mapCanBeSetViaInterface0.001
mapBeanEqualToItself0.001
mapBeanNotEqualToSecondBeanOnTheSameMap0.001
mapBeanOptionalCollectionQueryMethodIsFalseIfTheListIsNotPresent0.001

TestReflectionOnInherentedMethods

subinterfaceMethodsIncludeSuperinterfaceMethods0.001
subinterfaceMethodsIncludeSubinterfaceMethods0
subclassMethodsIncludeSuperinterfaceMethods0
subclassMethodsIncludeSubinterfaceMethods0
subclassMethodsIncludeSuperclassMethods0
subclassMethodsIncludeSubclassMethods0
subsubclassMethodsIncludeSuperclassMethods0
declaredSubclassMethodsAreFound0
declaredSuperclassMethodsAreFound0

TestCanFindAllAnnotatedFields

canSelectAllFieldThatAreAnnotated0.006

TestConvertClassToReflectedType

classCanBeConvertedToReflectedType0

TestConvertConstructorToReflectedConstructor

constructorIsConvertedToReflectedConstructor0.011

TestReflectionOnInterface

classUnderReflectionReturnsClassUnderReflection0
methodsCanBeSelectedByPrefix0.002
methodsCanBeSelectedBySuffix0
methodsCanBeSelectedByRegularExpression0.001
methodsWithNoArgumentsCanBeSelected0
methodCanBeSelectedByArgument0.007

TestMatcherAnd

ifBothMatcherMatchesThenTrue0.001
descriptionDescribesBothMatchers0.001
descriptionWithSingleMatcherIsSensible0.001
ifOnlyOneMatcherMatchesThenFalse0

TestMatcherElementHasNameContaining

matcherCanMatch0.001
matcherCanFailToMatch0
matcherDescriptionMakesSense0

TestConvertClassToReflectedTypeMatcher

classConvertedToMatcherForReflectedType0

TestMatcherTypeHasNoSuperclasses

matcherCanMatch0.016
matcherCanFailToMatch0.003
matcherDescriptionMakesSense0

TestMapBean

mapCanBeQueriedViaInterface0.001
mapCanBeReadViaInterface0
mapCanBeSetViaInterface0
mapBeanEqualToItself0
mapBeanNotEqualToSecondBeanOnTheSameMap0.002
mapBeanOptionalCollectionQueryMethodIsFalseIfTheListIsNotPresent0

TestBoundReflectedFieldImpl

memberUnderReflectionIsDelegated0.007

TestMatcherArgumentCount

matcherCanMatch0.003
matcherCanFailToMatch0
matcherDescriptionMakesSense0

TestMatcherElementHasNameEndingWith

matcherCanMatch0.001
matcherCanFailToMatch0
matcherDescriptionMakesSense0

TestIdentifyMembersByVisibiity

canMatchPublicFieldVisibility0
canMatchPackageFieldVisibility0
canMatchProtectedFieldVisibility0
canMatchPrivateFieldVisibility0
canMatchPublicMethodVisibility0.001
canMatchPackageMethodVisibility0
canMatchProtectedMethodVisibility0
canMatchPrivateMethodVisibility0

TestMatcherElementHasVoidReturn

matcherCanMatch0.001
matcherCanFailToMatch0.001
matcherDescriptionMakesSense0.001

TestConvertReflectedType2Class

classIsConvertedToReflectedType0.005

TestReflectedClassStaticMethods

callSimpleStaticMethod0.001
callStaticMethodWithReturnValue0
callStaticMethodWithOneArgumentIfMultipleMatches0
callstaticMethodWithTwoArguments0
methodWithTwoArgumentsHasCorrectArgumentCount0

TestMatcherAnyReflectedType

matcherCanMatch0
matcherCanFailToMatch0
matcherDescriptionMakesSense0

TestReflectedObject

instanceMethodsCanBeCalled0.001
instanceMethodsCanHaveReturnTypeBoundAndBeCalled0.001
instanceMethodsWithArgumentsCanBeCalled0.001
instanceMethodArgumentsCountIsCorrect0
instanceMethodArgumentTypeIsCorrect0.001
instanceMethodDeclaringTypeIsCorrect0
staticMethodsAreNotFound0
methodsAreFound0
classUnderReflectionIsCorrect0

TestReflectedClassImpl

constructFindsConstructorAndBindsReflectedResult0.007

TestReflectedMethodToString

staticMethod0.001
methodWithOneArgument0.092
methodWithTwoArguments0.001
voidMethodWithNoArguments0
publicMethod0.001
privateMethod0
protectedMethod0.001
finalMethod0
methodWithGenericReturnType0.002
methodWithBoundParameterizedGenericReturnType0.002
methodWithParameterizedGenericReturnType0
parameterizedGenericMethodWithGenericReturnType0.005
methodWithGenericArgument0
methodWithBoundParameterizedGenericArgument0.001
methodWithParameterizedGenericReturnArgument0.001
genericMethodWithParameterizedGenericReturnArgument0.001

TestReflectionOnTypeHierarchy

topLevelClassImplementsNoInterfaces0.01
topLevelClassHasNoSuperclasses0
topLevelInterfaceHasNoInterfaces0.001
ancestorInterfacesAreFound0.001
superClassesReturnedInOrder0.001

TestFindAllBeanMethods

canSelectAllGetters0.006
canSelectAllSetters0

TestJoorExamples

joorStringExample0.007
joorArrayExample0.001
joorStringExampleWithMatchers0.001

TestCanReadAndSetFields

canSetPublicField0
canReadPublicField0
canSetPackageField0.001
canReadPackageField0
canSetProtectedField0
canReadProtectedField0
canSetPrivateField0
canReadPrivateField0.001

TestReflectionOnBoundMethods

boundMethodCanBeCalled0

TestCanCallAnnotatedMethodsInTheRightOrder

canCallPostConstructMethodsInTheCorrectOrder0.022
canCallPreDestroyMethodsInTheCorrectOrder0.001

TestReflectionMatchersArgumentTypes

canMatchNoArguments0.004

TestMatcherTypeHasInterfaces

matcherCanMatch0.001
matcherCanFailToMatch0
matcherDescriptionMakesSense0.001

TestMatcherElementNamed

matcherCanMatch0
matcherCanFailToMatch0
matcherDescriptionMakesSense0

TestReflectionOnAnnotatedMethods

canReadAnnotationOnMethod0.001
whenMethodHasAnnotationAnnotatedWithReturnsTrue0.001
whenMethodDoesNotHaveAnnotationAnnotatedWithReturnsFalse0
matchingAnnotationIsReflectedOn0.001

TestConvertObjectToClass

objectIsConvertedToClass0

TestMatcherElementHasNameStartingWith

matcherCanMatch0
matcherCanFailToMatch0
matcherDescriptionMakesSense0

TestMatcherElementHasNameMatching

matcherCanMatch0
matcherCanFailToMatch0.001
matcherDescriptionMakesSense0

TestReflectionMatchersHasReturnType

canMatchReturnTypeByReflectedClass0.002

TestMatcherTypeHasNoInterfaces

matcherCanMatch0
matcherCanFailToMatch0
matcherDescriptionMakesSense0

TestMatcherOr

ifOnlyOneMatcherMatchesThenTrue0
ifBothMatcherMatchesThenTrue0.001
ifNeitherMatcherMatchesThenFalse0
descriptionDescribesBothMatchers0.011
descriptionWithSingleMatcherIsSensible0.001

TestMatcherTypeIsInterface

matcherCanMatch0.001
matcherCanFailToMatch0.001
matcherDescriptionMakesSense0