Skip to content

Commit

Permalink
reduce use of ScalaObjectMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Dec 20, 2020
1 parent 6724059 commit 9a56d6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ abstract class JacksonTest extends BaseSpec {
}

def newMapper: ObjectMapper = newBuilder.build()

def newMapperWithScalaObjectMapper: ObjectMapper with ScalaObjectMapper = {
newBuilder.build() :: ScalaObjectMapper
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,8 @@ class ScalaObjectMapperTest extends JacksonTest {
}
}
}

private def newMapperWithScalaObjectMapper: ObjectMapper with ScalaObjectMapper = {
newBuilder.build() :: ScalaObjectMapper
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ object ScalaAnnotationIntrospectorTest {
class ScalaAnnotationIntrospectorTest extends FixtureAnyFlatSpec with Matchers {
import ScalaAnnotationIntrospectorTest._

type FixtureParam = ObjectMapper with ScalaObjectMapper
type FixtureParam = ObjectMapper

override def withFixture(test: OneArgTest): Outcome = {
val mapper = new ObjectMapper with ScalaObjectMapper
val mapper = new ObjectMapper
mapper.registerModule(DefaultScalaModule)
withFixture(test.toNoArgTest(mapper))
}
Expand Down

0 comments on commit 9a56d6e

Please sign in to comment.