File tree 2 files changed +49
-0
lines changed
main/java/tools/jackson/module/scala/javadsl
test/scala/tools/jackson/module/scala
2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 1
1
package tools .jackson .module .scala .javadsl ;
2
2
3
+ import tools .jackson .module .scala .*;
4
+
3
5
public final class ScalaModule {
4
6
public static tools .jackson .module .scala .ScalaModule .Builder builder () {
5
7
return tools .jackson .module .scala .ScalaModule$ .MODULE$ .builder ();
6
8
}
9
+
10
+ public static EitherModule eitherModule () {
11
+ return EitherModule$ .MODULE$ ;
12
+ }
13
+
14
+ public static EnumerationModule enumerationModule () {
15
+ return EnumerationModule$ .MODULE$ ;
16
+ }
17
+
18
+ public static IteratorModule iteratorModule () {
19
+ return IteratorModule$ .MODULE$ ;
20
+ }
21
+
22
+ public static IterableModule iterableModule () {
23
+ return IterableModule$ .MODULE$ ;
24
+ }
25
+
26
+ public static OptionModule optionModule () {
27
+ return OptionModule$ .MODULE$ ;
28
+ }
29
+
30
+ public static TupleModule tupleModule () {
31
+ return TupleModule$ .MODULE$ ;
32
+ }
33
+
34
+ public static MapModule mapModule () {
35
+ return MapModule$ .MODULE$ ;
36
+ }
37
+
38
+ public static SetModule setModule () {
39
+ return SetModule$ .MODULE$ ;
40
+ }
41
+
42
+ public static SymbolModule symbolModule () {
43
+ return SymbolModule$ .MODULE$ ;
44
+ }
7
45
}
Original file line number Diff line number Diff line change
1
+ package tools .jackson .module .scala
2
+
3
+ class JavaDslTest extends BaseSpec {
4
+ " Java DSL" should " support getting DefaultScalaModule" in {
5
+ javadsl.DefaultScalaModule .getInstance() shouldBe DefaultScalaModule
6
+ }
7
+ it should " support ScalaModule builder" in {
8
+ val builder = javadsl.ScalaModule .builder().addAllBuiltinModules()
9
+ builder.hasModule(IteratorModule ) shouldBe true
10
+ }
11
+ }
You can’t perform that action at this time.
0 commit comments