All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.sbb.polarion.extension.cucumber.rest.CucumberIntegrationRestApplication Maven / Gradle / Ivy

The newest version!
package ch.sbb.polarion.extension.cucumber.rest;

import ch.sbb.polarion.extension.cucumber.rest.controller.ApiController;
import ch.sbb.polarion.extension.cucumber.rest.controller.InternalController;
import ch.sbb.polarion.extension.cucumber.rest.controller.JiraRestApiController;
import ch.sbb.polarion.extension.cucumber.rest.controller.XrayExportCucumberTestsController;
import ch.sbb.polarion.extension.cucumber.rest.controller.XrayImportExecutionResultsController;
import ch.sbb.polarion.extension.cucumber.rest.exception.TestRunCreationExceptionMapper;
import ch.sbb.polarion.extension.generic.rest.GenericRestApplication;
import org.jetbrains.annotations.NotNull;

import java.util.Set;

public class CucumberIntegrationRestApplication extends GenericRestApplication {

    @Override
    @NotNull
    protected Set getExtensionExceptionMapperSingletons() {
        return Set.of(new TestRunCreationExceptionMapper());
    }

    @Override
    @NotNull
    protected Set getExtensionControllerSingletons() {
        return Set.of(
                new ApiController(),
                new InternalController(),
                new JiraRestApiController(),
                new XrayExportCucumberTestsController(),
                new XrayImportExecutionResultsController()
        );
    }
}