Skip to content

Commit

Permalink
Merge pull request #68 from jspiewak/extend-json-in-resource-test
Browse files Browse the repository at this point in the history
Allow implementations of ResourceTest to supply their own implementation of Json
  • Loading branch information
codahale committed Mar 27, 2012
2 parents e648db8 + 9892ac9 commit 257fd1f
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -42,6 +42,10 @@ protected void addJacksonModule(Module module) {
modules.add(module);
}

protected Json getJson() {
return new Json();
}

protected Client client() {
return test.client();
}
Expand All @@ -59,7 +63,7 @@ protected AppDescriptor configure() {
for (Class<?> provider : providers) {
config.getClasses().add(provider);
}
Json json = new Json();
Json json = getJson();
for (Module module : modules) {
json.registerModule(module);
}
Expand Down

0 comments on commit 257fd1f

Please sign in to comment.