Exemplo n.º 1
0
  @Override
  public List<TriggerEventRequest> buildTriggers() {
    List<TriggerEventRequest> triggers = new ArrayList<>();

    for (Config config : configService.getConfigs().getConfigs()) {
      triggers.addAll(buildTriggersForConfig(config));
    }

    return triggers;
  }
  @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();
  }