class ReflectionParameterParserTest extends TestCase (View source)

Methods

testEachParseReturnsItsOwnParameterModel()

The declared return type already guarantees the model class, so asserting instanceof could never fail. What is not type-guaranteed — and would be a real regression if a parser ever memoised its result — is that each call yields its own model rather than a shared, mutable one.

testItCanParseName()

No description

testItCanParsePosition()

No description

testItCanParseOptional()

No description

testItCanParseVariadic()

No description

testItCanParseDefaultValue()

No description

testItCanParseType()

No description

Details

testEachParseReturnsItsOwnParameterModel()

The declared return type already guarantees the model class, so asserting instanceof could never fail. What is not type-guaranteed — and would be a real regression if a parser ever memoised its result — is that each call yields its own model rather than a shared, mutable one.

testItCanParseName()

No description

testItCanParsePosition()

No description

testItCanParseOptional()

No description

testItCanParseVariadic()

No description

testItCanParsePassedByReference()

No description

testItCanParseDefaultValue()

No description

testItCanParseType()

No description

testCanParseReturnsTrueForAdaptedReflectionParameter()

No description

testCanParseReturnsFalseForOtherObjects()

No description