forked from boskworks/bosk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Jackson linked-map representation
- Loading branch information
Showing
5 changed files
with
144 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
bosk-jackson/src/main/java/works/bosk/jackson/JacksonPluginConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 12 additions & 4 deletions
16
bosk-jackson/src/test/java/works/bosk/jackson/JacksonRoundTripConformanceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
package works.bosk.jackson; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
import java.util.stream.Stream; | ||
import works.bosk.drivers.DriverConformanceTest; | ||
import works.bosk.junit.ParametersByName; | ||
|
||
import static works.bosk.AbstractRoundTripTest.jacksonRoundTripFactory; | ||
|
||
public class JacksonRoundTripConformanceTest extends DriverConformanceTest { | ||
@BeforeEach | ||
void setupDriverFactory() { | ||
driverFactory = jacksonRoundTripFactory(); | ||
@ParametersByName | ||
JacksonRoundTripConformanceTest(JacksonPluginConfiguration config) { | ||
driverFactory = jacksonRoundTripFactory(config); | ||
} | ||
|
||
static Stream<JacksonPluginConfiguration> config() { | ||
return Stream.of( | ||
JacksonPluginConfiguration.defaultConfiguration(), | ||
new JacksonPluginConfiguration(true) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters