Skip to content

Commit 67a0540

Browse files
Add Jackson ServiceLoader support (closes #19). (#20)
1 parent 9dc89e9 commit 67a0540

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.openapitools.jackson.nullable.JsonNullableModule
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package org.openapitools.jackson.nullable;
2+
3+
import com.fasterxml.jackson.databind.ObjectMapper;
4+
5+
import junit.framework.TestCase;
6+
7+
public class JsonNullJacksonServiceLoadingTest extends TestCase {
8+
9+
public void testJacksonJsonNullableModuleServiceLoading() {
10+
String foundModuleName = ObjectMapper.findModules().get(0).getModuleName();
11+
assertEquals(new JsonNullableModule().getModuleName(), foundModuleName);
12+
}
13+
}

0 commit comments

Comments
 (0)