Skip to content

Commit

Permalink
Merge pull request #2 from jeffnelson/fix-module-name
Browse files Browse the repository at this point in the history
fix name of jackson module class
  • Loading branch information
jeffnelson committed Jun 14, 2019
2 parents edafe8b + 69d0883 commit 57b021e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ then individual getters and setters for fields. When this happens, Jackson is fo
ctor.

## Getting Started
Register the `PatchMergeModule` with your `ObjectMapper`
Register the `MergePatchModule` with your `ObjectMapper`

```
ObjectMapper om = new ObjectMapper();
om.registerModule(new PatchMergeModule());
om.registerModule(new MergePatchModule());
```
Or you may use the customer serializer manually on a `PatchField` attribute

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
* @since 1.0.0
*
*/
public class PatchMergeModule extends SimpleModule {
public class MergePatchModule extends SimpleModule {

private static final long serialVersionUID = 1L;

public PatchMergeModule() {
public MergePatchModule() {
addDeserializer(IPatchField.class, new PatchFieldDeserializer());
addDeserializer(PatchField.class, new PatchFieldDeserializer());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public class PatchFieldDTOControllerTest {
public void setup() {
MockitoAnnotations.initMocks(this);

// setup the HttpMessage converter to use ObjectMapper with the PatchMergeModule
// setup the HttpMessage converter to use ObjectMapper with the MergePatchModule
ObjectMapper om = new ObjectMapper();
om.registerModule(new PatchMergeModule());
om.registerModule(new MergePatchModule());
MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
converter.setObjectMapper(om);

Expand Down

0 comments on commit 57b021e

Please sign in to comment.