We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25547dc commit 0e4211aCopy full SHA for 0e4211a
src/test/scala/com/fasterxml/jackson/module/scala/ServiceLoaderSpec.scala
@@ -0,0 +1,16 @@
1
+package com.fasterxml.jackson.module.scala
2
+
3
+import java.util.ServiceLoader
4
5
+import scala.collection.JavaConverters._
6
7
+class ServiceLoaderSpec extends BaseSpec {
8
+ "A ServiceLoader" should "be able to load DefaultScalaModule" in {
9
+ val loader = ServiceLoader.load(classOf[com.fasterxml.jackson.databind.Module])
10
+ val modules = loader.iterator().asScala.toList
11
+ modules should not be empty
12
+ modules.collectFirst {
13
+ case m if m.getClass.getName == "com.fasterxml.jackson.module.scala.DefaultScalaModule" => m
14
+ } should not be empty
15
+ }
16
+}
0 commit comments