Summary
[Summary] [Package List] [Test Cases]
Tests | Errors | Failures | Skipped | Success Rate | Time |
---|---|---|---|---|---|
261 | 0 | 0 | 0 | 100% | 0.698 |
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.lexicalscope.fluentreflection.usecases | 24 | 0 | 0 | 0 | 100% | 0.057 |
com.lexicalscope.fluentreflection.bean.endtoend | 56 | 0 | 0 | 0 | 100% | 0.096 |
com.lexicalscope.fluentreflection.endtoend | 96 | 0 | 0 | 0 | 100% | 0.22 |
com.lexicalscope.fluentreflection | 71 | 0 | 0 | 0 | 100% | 0.28 |
com.lexicalscope.fluentreflection.dynamicproxy.endtoend | 14 | 0 | 0 | 0 | 100% | 0.045 |
Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.
com.lexicalscope.fluentreflection.usecases
Class | Tests | Errors | Failures | Skipped | Success Rate | Time | |
---|---|---|---|---|---|---|---|
TestCanFindAllAnnotatedFields | 1 | 0 | 0 | 0 | 100% | 0.006 | |
TestIdentifyMembersByVisibiity | 8 | 0 | 0 | 0 | 100% | 0.004 | |
TestFindAllBeanMethods | 2 | 0 | 0 | 0 | 100% | 0.006 | |
TestJoorExamples | 3 | 0 | 0 | 0 | 100% | 0.012 | |
TestCanReadAndSetFields | 8 | 0 | 0 | 0 | 100% | 0.005 | |
TestCanCallAnnotatedMethodsInTheRightOrder | 2 | 0 | 0 | 0 | 100% | 0.024 |
com.lexicalscope.fluentreflection.bean.endtoend
Class | Tests | Errors | Failures | Skipped | Success Rate | Time | |
---|---|---|---|---|---|---|---|
TestBeanMap | 37 | 0 | 0 | 0 | 100% | 0.03 | |
TestBeanMapBuilder | 7 | 0 | 0 | 0 | 100% | 0.024 | |
TestMapBeanWithNoPrefixes | 6 | 0 | 0 | 0 | 100% | 0.025 | |
TestMapBean | 6 | 0 | 0 | 0 | 100% | 0.017 |
com.lexicalscope.fluentreflection.endtoend
Class | Tests | Errors | Failures | Skipped | Success Rate | Time | |
---|---|---|---|---|---|---|---|
TestReflectedClass | 3 | 0 | 0 | 0 | 100% | 0.002 | |
TestRawConstructionByReflection | 7 | 0 | 0 | 0 | 100% | 0.006 | |
TestReflectedClassFields | 20 | 0 | 0 | 0 | 100% | 0.027 | |
TestReflectionOnConstructors | 1 | 0 | 0 | 0 | 100% | 0.001 | |
TestReflectedClassInstanceMethod | 8 | 0 | 0 | 0 | 100% | 0.007 | |
TestReflectionOnInherentedMethods | 9 | 0 | 0 | 0 | 100% | 0.006 | |
TestReflectionOnInterface | 6 | 0 | 0 | 0 | 100% | 0.014 | |
TestReflectedClassStaticMethods | 5 | 0 | 0 | 0 | 100% | 0.007 | |
TestReflectedObject | 9 | 0 | 0 | 0 | 100% | 0.008 | |
TestReflectedMethodToString | 16 | 0 | 0 | 0 | 100% | 0.112 | |
TestReflectionOnTypeHierarchy | 5 | 0 | 0 | 0 | 100% | 0.017 | |
TestReflectionOnBoundMethods | 1 | 0 | 0 | 0 | 100% | 0.001 | |
TestReflectionMatchersArgumentTypes | 1 | 0 | 0 | 0 | 100% | 0.004 | |
TestReflectionOnAnnotatedMethods | 4 | 0 | 0 | 0 | 100% | 0.006 | |
TestReflectionMatchersHasReturnType | 1 | 0 | 0 | 0 | 100% | 0.002 |
com.lexicalscope.fluentreflection
com.lexicalscope.fluentreflection.dynamicproxy.endtoend
Class | Tests | Errors | Failures | Skipped | Success Rate | Time | |
---|---|---|---|---|---|---|---|
TestFluentDynamicProxy | 7 | 0 | 0 | 0 | 100% | 0.027 | |
TestLightweightFluentDynamicProxy | 7 | 0 | 0 | 0 | 100% | 0.018 |
Test Cases
[Summary] [Package List] [Test Cases]
TestFluentDynamicProxy
canProxyMultipleMethods | 0.006 | |
canReturnValueFromProxiedMethod | 0.003 | |
canReturnDifferentValuesFromEachProxiedMethod | 0.002 | |
canDefineDefaultImplementationForUnmatchedMethods | 0.003 | |
canThrowException | 0.004 | |
canGetMethodArguments | 0.004 | |
canGetBindUsingMethodArguments | 0.002 |
TestRawConstructionByReflection
constructUsingDefaultConstructor | 0.001 | |
constructUsingOneArgumentConstructor | 0 | |
constructUsingOneArgumentWithNullValueConstructor | 0 | |
constructUsingTwoArgumentConstructor | 0 | |
constructUsingTwoArgumentWithOneNullValueConstructor | 0 | |
constructUsingTwoArgumentWithTwoNullValueConstructor | 0 | |
constructUsingAnyConstructorIfMultipleMatchers | 0 |
TestMatcherReflectedTypeReflectingOn
matcherCanMatch | 0 | |
matcherCanFailToMatch | 0 | |
matcherDescriptionMakesSense | 0 |
TestBoundReflectedMethodImpl
bindingStaticMethodIsNotAllowed | 0.001 | |
boundMethodToStringIsAllowed | 0.001 | |
boundMethodReturnTypeIsAvailable | 0.001 |
TestBoundReflectedMemberImpl
isStaticIsDelegated | 0.003 | |
isFinalIsDelegated | 0.001 | |
visibilityIsDelegated | 0.001 |
TestMatcherConstructorReflectingOn
matcherCanMatch | 0.004 | |
matcherCanFailToMatch | 0.001 | |
matcherDescriptionMakesSense | 0 |
TestMatcherElementDeclaredBy
matcherCanMatch | 0.03 | |
matcherCanFailToMatch | 0.002 | |
matcherDescriptionMakesSense | 0.001 |
TestReflectedClassFields
canFindFieldByName | 0.001 | |
canNotFindStaticFieldOfBoundObject | 0.001 | |
canWriteField | 0 | |
fieldDeclaringTypeIsCorrect | 0.001 | |
finalFieldsAreMarkedAsFinal | 0 | |
propertyNameIsAvailable | 0.001 | |
fieldHasOneArgument | 0 | |
publicFieldToStringIsUseful | 0 | |
packageToStringIsUseful | 0.001 | |
staticToStringIsUseful | 0 | |
staticFinalToStringIsUseful | 0 | |
boundToStringIsUseful | 0.002 | |
boundEqualsIsTrueForTheSameInstance | 0.002 | |
hashCodeIsTheSameForTheSameBoundInstance | 0.002 | |
boundEqualsIsFalseForTheDifferentBoundInstances | 0 | |
equalsIsTrueWhenTheFieldsAreTheSameAsEachOther | 0 | |
equalsIsTrueWhenTheThatIsARandomOtherObject | 0 | |
cannotReadFieldWithoutInstance | 0.004 | |
cannotCallFieldWithTooManyArguments | 0 | |
missingFieldThrowsException | 0.001 |
TestBeanMap
putNonExistentPropertyCausesException | 0 | |
getNonExistentPropertyGivesNull | 0 | |
propertyIsPresent | 0 | |
initalValueOfPropertyIsZero | 0 | |
settingValueOfPropertyUpdatesObject | 0 | |
settingValueOfObjectUpdatesMap | 0 | |
settingValueOfMapReturnsOldValue | 0 | |
readOnlyPropertyIsPresent | 0 | |
initalValueOfReadOnlyPropertyIsNull | 0 | |
settingValueOfReadOnlyPropertyIsIgnoredByObject | 0 | |
changesToReadOnlyPropertyAreReturnedByMap | 0 | |
settingValueOfReadOnlyPropertyInMapReturnsOldValue | 0 | |
writeOnlyPropertyIsPresent | 0 | |
initalValueOfWriteOnlyPropertyIsNull | 0 | |
settingValueOfWriteOnlyPropertyUpdatesObject | 0 | |
changesToWriteOnlyPropertyAreIgnoredByMap | 0 | |
settingValueOfWriteOnlyPropertyInMapReturnsNullValue | 0 | |
clearIsUnsupported | 0 | |
removeIsUnsupported | 0 | |
containsInitialReadableValues | 0 | |
containsChangedReadableValues | 0 | |
doesNotContainsWriteOnlyValues | 0 | |
valuesContainsAllValues | 0.001 | |
keySetContainsAllProperties | 0 | |
beanWithPropertiesGivesNotEmptyMap | 0 | |
beanWithoutPropertiesGivesNotEmptyMap | 0 | |
beanWithPropertiesHasCorrectSize | 0 | |
beanWithoutPropertiesHasZeroSize | 0.001 | |
putAllUpdatesWritableProperties | 0 | |
putAllIgnoresReadOnlyProperties | 0 | |
putAllWithNonExistentPropertyThrowsException | 0 | |
entrySetContainsAllPropertiesAndReadableValues | 0.002 | |
entrySetAllowsValuesToBeChanged | 0 | |
cannotRemoveFromKeySet | 0 | |
cannotRemoveFromKeySetIterator | 0.001 | |
cannotRemoveFromEntrySet | 0.001 | |
cannotRemoveFromEntrySetIterator | 0 |
TestLightweightFluentDynamicProxy
canProxyMultipleMethods | 0.003 | |
canReturnValueFromProxiedMethod | 0.002 | |
canReturnDifferentValuesFromEachProxiedMethod | 0.001 | |
canDefineDefaultImplementationForUnmatchedMethods | 0.001 | |
canThrowException | 0.002 | |
canGetMethodArguments | 0.002 | |
canGetBindUsingMethodArguments | 0.001 |
TestReflectedClassInstanceMethod
methodWithTwoArgumentsHasCorrectArgumentCount | 0 | |
instanceMethodArgumentTypeIsCorrect | 0 | |
simpleMethodCanBeCalled | 0 | |
callingMethodWithReturnValueReturnsValue | 0 | |
canCallMethodWithOneArgumentIfMultipleMatches | 0.001 | |
methodWithTwoArgumentsCanBeCalled | 0 | |
callingInstanceMethodWithoutInstanceFails | 0.001 | |
callingInstanceMethodWithWrongInstanceType | 0.001 |
TestBeanMapBuilder
canSelectOnlyReadWriteProperties | 0.017 | |
canSelectAllReadableProperties | 0.001 | |
canSelectAllWritableProperties | 0.001 | |
canSelectWritableOnlyProperties | 0.001 | |
canSelectReadableOnlyProperties | 0.001 | |
canLowercaseProperties | 0.001 | |
beanDoesNotNeedGetAndSetPrefixes | 0.001 |
TestMatcherElementWithArguments
matcherCanMatch | 0.002 | |
matcherCanFailToMatch | 0.001 | |
matcherDescriptionMakesSense | 0.001 |
TestMapBeanWithNoPrefixes
mapCanBeQueriedViaInterface | 0.001 | |
mapCanBeReadViaInterface | 0 | |
mapCanBeSetViaInterface | 0.001 | |
mapBeanEqualToItself | 0.001 | |
mapBeanNotEqualToSecondBeanOnTheSameMap | 0.001 | |
mapBeanOptionalCollectionQueryMethodIsFalseIfTheListIsNotPresent | 0.001 |
TestReflectionOnInherentedMethods
subinterfaceMethodsIncludeSuperinterfaceMethods | 0.001 | |
subinterfaceMethodsIncludeSubinterfaceMethods | 0 | |
subclassMethodsIncludeSuperinterfaceMethods | 0 | |
subclassMethodsIncludeSubinterfaceMethods | 0 | |
subclassMethodsIncludeSuperclassMethods | 0 | |
subclassMethodsIncludeSubclassMethods | 0 | |
subsubclassMethodsIncludeSuperclassMethods | 0 | |
declaredSubclassMethodsAreFound | 0 | |
declaredSuperclassMethodsAreFound | 0 |
TestReflectionOnInterface
classUnderReflectionReturnsClassUnderReflection | 0 | |
methodsCanBeSelectedByPrefix | 0.002 | |
methodsCanBeSelectedBySuffix | 0 | |
methodsCanBeSelectedByRegularExpression | 0.001 | |
methodsWithNoArgumentsCanBeSelected | 0 | |
methodCanBeSelectedByArgument | 0.007 |
TestMatcherAnd
ifBothMatcherMatchesThenTrue | 0.001 | |
descriptionDescribesBothMatchers | 0.001 | |
descriptionWithSingleMatcherIsSensible | 0.001 | |
ifOnlyOneMatcherMatchesThenFalse | 0 |
TestMatcherElementHasNameContaining
matcherCanMatch | 0.001 | |
matcherCanFailToMatch | 0 | |
matcherDescriptionMakesSense | 0 |
TestMatcherTypeHasNoSuperclasses
matcherCanMatch | 0.016 | |
matcherCanFailToMatch | 0.003 | |
matcherDescriptionMakesSense | 0 |
TestMapBean
mapCanBeQueriedViaInterface | 0.001 | |
mapCanBeReadViaInterface | 0 | |
mapCanBeSetViaInterface | 0 | |
mapBeanEqualToItself | 0 | |
mapBeanNotEqualToSecondBeanOnTheSameMap | 0.002 | |
mapBeanOptionalCollectionQueryMethodIsFalseIfTheListIsNotPresent | 0 |
TestMatcherElementHasNameEndingWith
matcherCanMatch | 0.001 | |
matcherCanFailToMatch | 0 | |
matcherDescriptionMakesSense | 0 |
TestIdentifyMembersByVisibiity
canMatchPublicFieldVisibility | 0 | |
canMatchPackageFieldVisibility | 0 | |
canMatchProtectedFieldVisibility | 0 | |
canMatchPrivateFieldVisibility | 0 | |
canMatchPublicMethodVisibility | 0.001 | |
canMatchPackageMethodVisibility | 0 | |
canMatchProtectedMethodVisibility | 0 | |
canMatchPrivateMethodVisibility | 0 |
TestMatcherElementHasVoidReturn
matcherCanMatch | 0.001 | |
matcherCanFailToMatch | 0.001 | |
matcherDescriptionMakesSense | 0.001 |
TestReflectedClassStaticMethods
callSimpleStaticMethod | 0.001 | |
callStaticMethodWithReturnValue | 0 | |
callStaticMethodWithOneArgumentIfMultipleMatches | 0 | |
callstaticMethodWithTwoArguments | 0 | |
methodWithTwoArgumentsHasCorrectArgumentCount | 0 |
TestReflectedObject
instanceMethodsCanBeCalled | 0.001 | |
instanceMethodsCanHaveReturnTypeBoundAndBeCalled | 0.001 | |
instanceMethodsWithArgumentsCanBeCalled | 0.001 | |
instanceMethodArgumentsCountIsCorrect | 0 | |
instanceMethodArgumentTypeIsCorrect | 0.001 | |
instanceMethodDeclaringTypeIsCorrect | 0 | |
staticMethodsAreNotFound | 0 | |
methodsAreFound | 0 | |
classUnderReflectionIsCorrect | 0 |
TestReflectedMethodToString
staticMethod | 0.001 | |
methodWithOneArgument | 0.092 | |
methodWithTwoArguments | 0.001 | |
voidMethodWithNoArguments | 0 | |
publicMethod | 0.001 | |
privateMethod | 0 | |
protectedMethod | 0.001 | |
finalMethod | 0 | |
methodWithGenericReturnType | 0.002 | |
methodWithBoundParameterizedGenericReturnType | 0.002 | |
methodWithParameterizedGenericReturnType | 0 | |
parameterizedGenericMethodWithGenericReturnType | 0.005 | |
methodWithGenericArgument | 0 | |
methodWithBoundParameterizedGenericArgument | 0.001 | |
methodWithParameterizedGenericReturnArgument | 0.001 | |
genericMethodWithParameterizedGenericReturnArgument | 0.001 |
TestReflectionOnTypeHierarchy
topLevelClassImplementsNoInterfaces | 0.01 | |
topLevelClassHasNoSuperclasses | 0 | |
topLevelInterfaceHasNoInterfaces | 0.001 | |
ancestorInterfacesAreFound | 0.001 | |
superClassesReturnedInOrder | 0.001 |
TestCanReadAndSetFields
canSetPublicField | 0 | |
canReadPublicField | 0 | |
canSetPackageField | 0.001 | |
canReadPackageField | 0 | |
canSetProtectedField | 0 | |
canReadProtectedField | 0 | |
canSetPrivateField | 0 | |
canReadPrivateField | 0.001 |
TestCanCallAnnotatedMethodsInTheRightOrder
canCallPostConstructMethodsInTheCorrectOrder | 0.022 | |
canCallPreDestroyMethodsInTheCorrectOrder | 0.001 |
TestMatcherTypeHasInterfaces
matcherCanMatch | 0.001 | |
matcherCanFailToMatch | 0 | |
matcherDescriptionMakesSense | 0.001 |
TestReflectionOnAnnotatedMethods
canReadAnnotationOnMethod | 0.001 | |
whenMethodHasAnnotationAnnotatedWithReturnsTrue | 0.001 | |
whenMethodDoesNotHaveAnnotationAnnotatedWithReturnsFalse | 0 | |
matchingAnnotationIsReflectedOn | 0.001 |
TestMatcherElementHasNameStartingWith
matcherCanMatch | 0 | |
matcherCanFailToMatch | 0 | |
matcherDescriptionMakesSense | 0 |
TestMatcherElementHasNameMatching
matcherCanMatch | 0 | |
matcherCanFailToMatch | 0.001 | |
matcherDescriptionMakesSense | 0 |
TestMatcherOr
ifOnlyOneMatcherMatchesThenTrue | 0 | |
ifBothMatcherMatchesThenTrue | 0.001 | |
ifNeitherMatcherMatchesThenFalse | 0 | |
descriptionDescribesBothMatchers | 0.011 | |
descriptionWithSingleMatcherIsSensible | 0.001 |
TestMatcherTypeIsInterface
matcherCanMatch | 0.001 | |
matcherCanFailToMatch | 0.001 | |
matcherDescriptionMakesSense | 0 |