Search in sources :

Example 1 with RdfConverter

use of org.molgenis.core.ui.converter.RdfConverter in project molgenis by molgenis.

the class FairControllerTest method beforeTest.

@BeforeMethod
public void beforeTest() {
    dataService = mock(DataService.class);
    entityModelWriter = mock(EntityModelWriter.class);
    controller = new FairController(dataService, entityModelWriter);
    mockMvc = MockMvcBuilders.standaloneSetup(controller).setMessageConverters(new FormHttpMessageConverter(), gsonHttpMessageConverter, new RdfConverter()).build();
}
Also used : FormHttpMessageConverter(org.springframework.http.converter.FormHttpMessageConverter) RdfConverter(org.molgenis.core.ui.converter.RdfConverter) DataService(org.molgenis.data.DataService) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

RdfConverter (org.molgenis.core.ui.converter.RdfConverter)1 DataService (org.molgenis.data.DataService)1 FormHttpMessageConverter (org.springframework.http.converter.FormHttpMessageConverter)1 BeforeMethod (org.testng.annotations.BeforeMethod)1