Search in sources :

Example 1 with RestJsonModule

use of org.alfresco.rest.framework.jacksonextensions.RestJsonModule in project alfresco-remote-api by Alfresco.

the class JsonJacksonTests method setupTests.

@BeforeClass
public static void setupTests() throws Exception {
    jsonHelper = new JacksonHelper();
    RestJsonModule module = new RestJsonModule();
    jsonHelper.setModule(module);
    jsonHelper.afterPropertiesSet();
}
Also used : RestJsonModule(org.alfresco.rest.framework.jacksonextensions.RestJsonModule) JacksonHelper(org.alfresco.rest.framework.jacksonextensions.JacksonHelper) BeforeClass(org.junit.BeforeClass)

Example 2 with RestJsonModule

use of org.alfresco.rest.framework.jacksonextensions.RestJsonModule in project alfresco-remote-api by Alfresco.

the class ParamsExtractorTests method setupTests.

@BeforeClass
public static void setupTests() throws Exception {
    jsonHelper = new JacksonHelper();
    RestJsonModule module = new RestJsonModule();
    jsonHelper.setModule(module);
    jsonHelper.afterPropertiesSet();
    assistant = new ApiAssistant();
    assistant.setJsonHelper(jsonHelper);
}
Also used : ApiAssistant(org.alfresco.rest.framework.tools.ApiAssistant) RestJsonModule(org.alfresco.rest.framework.jacksonextensions.RestJsonModule) JacksonHelper(org.alfresco.rest.framework.jacksonextensions.JacksonHelper) BeforeClass(org.junit.BeforeClass)

Aggregations

JacksonHelper (org.alfresco.rest.framework.jacksonextensions.JacksonHelper)2 RestJsonModule (org.alfresco.rest.framework.jacksonextensions.RestJsonModule)2 BeforeClass (org.junit.BeforeClass)2 ApiAssistant (org.alfresco.rest.framework.tools.ApiAssistant)1