@Before public void setUp() throws Exception { initMocks(this); config = ConfigsUtils.prepareConfigOne(); when(configService.getByName(config.getName())).thenReturn(config); appSchemaChangeController = new AppSchemaChangeController(eventRelay, configService); controller = MockMvcBuilders.standaloneSetup(appSchemaChangeController).build(); }
@Before public void setUp() throws Exception { mockMvc = MockMvcBuilders.standaloneSetup(controller).build(); }
@Before public void setUp() throws Exception { initMocks(this); controller = MockMvcBuilders.standaloneSetup(enrollmentController).build(); }
@Before public void setup() { MockitoAnnotations.initMocks(this); mockMvc = MockMvcBuilders.standaloneSetup(this.imageController).build(); }