Search in sources :

Example 1 with ServiceInstanceBindingController

use of org.springframework.cloud.servicebroker.controller.ServiceInstanceBindingController in project spring-cloud-open-service-broker by spring-cloud.

the class NonBindableServiceInstanceBindingControllerIntegrationTest method setUp.

@Before
public void setUp() {
    ServiceInstanceBindingService serviceInstanceBindingService = new NonBindableServiceInstanceBindingService();
    ServiceInstanceBindingController controller = new ServiceInstanceBindingController(catalogService, serviceInstanceBindingService);
    this.mockMvc = MockMvcBuilders.standaloneSetup(controller).setMessageConverters(new MappingJackson2HttpMessageConverter()).build();
}
Also used : NonBindableServiceInstanceBindingService(org.springframework.cloud.servicebroker.service.NonBindableServiceInstanceBindingService) MappingJackson2HttpMessageConverter(org.springframework.http.converter.json.MappingJackson2HttpMessageConverter) ServiceInstanceBindingController(org.springframework.cloud.servicebroker.controller.ServiceInstanceBindingController) NonBindableServiceInstanceBindingService(org.springframework.cloud.servicebroker.service.NonBindableServiceInstanceBindingService) ServiceInstanceBindingService(org.springframework.cloud.servicebroker.service.ServiceInstanceBindingService) Before(org.junit.Before)

Example 2 with ServiceInstanceBindingController

use of org.springframework.cloud.servicebroker.controller.ServiceInstanceBindingController in project spring-cloud-open-service-broker by spring-cloud.

the class NonBindableServiceInstanceBindingControllerIntegrationTest method setUp.

@Before
public void setUp() {
    ServiceInstanceBindingService serviceInstanceBindingService = new NonBindableServiceInstanceBindingService();
    ServiceInstanceBindingController controller = new ServiceInstanceBindingController(catalogService, serviceInstanceBindingService);
    this.client = WebTestClient.bindToController(controller).build();
}
Also used : NonBindableServiceInstanceBindingService(org.springframework.cloud.servicebroker.service.NonBindableServiceInstanceBindingService) ServiceInstanceBindingController(org.springframework.cloud.servicebroker.controller.ServiceInstanceBindingController) NonBindableServiceInstanceBindingService(org.springframework.cloud.servicebroker.service.NonBindableServiceInstanceBindingService) ServiceInstanceBindingService(org.springframework.cloud.servicebroker.service.ServiceInstanceBindingService) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 ServiceInstanceBindingController (org.springframework.cloud.servicebroker.controller.ServiceInstanceBindingController)2 NonBindableServiceInstanceBindingService (org.springframework.cloud.servicebroker.service.NonBindableServiceInstanceBindingService)2 ServiceInstanceBindingService (org.springframework.cloud.servicebroker.service.ServiceInstanceBindingService)2 MappingJackson2HttpMessageConverter (org.springframework.http.converter.json.MappingJackson2HttpMessageConverter)1