Skip to content

Commit 5c370ce

Browse files
authored
Merge pull request #729 from FasterXML/tatu/3.0/fix-test-wrt-introspection
Fix 3.0 test wrt change in jackson-databind
2 parents 98b116b + 70f270e commit 5c370ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/scala/tools/jackson/module/scala/introspect/ScalaAnnotationIntrospectorTest.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ class ScalaAnnotationIntrospectorTest extends FixtureAnyFlatSpec with Matchers {
297297

298298
private def getProps(mapper: ObjectMapper, bean: AnyRef) = {
299299
val classIntrospector = mapper.serializationConfig().classIntrospectorInstance()
300-
val beanDescription: BeanDescription = classIntrospector.introspectForSerialization(mapper.constructType(bean.getClass))
300+
val beanType = mapper.constructType(bean.getClass)
301+
val beanDescription: BeanDescription = classIntrospector.introspectForSerialization(beanType,
302+
classIntrospector.introspectClassAnnotations(beanType))
301303
beanDescription.findProperties()
302304
}
303305
}

0 commit comments

Comments
 (0)