コード例 #1
0
  @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();
  }
コード例 #2
0
 @Before
 public void setUp() throws Exception {
   mockMvc = MockMvcBuilders.standaloneSetup(controller).build();
 }
コード例 #3
0
 @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();
 }