src/test/java/eu/fair4health/discovery/DiscoveryControllerTest.java
/**
     * Test the discover controller mocking the service.
     * 
     * @return void
     */
Test the discover controller mocking the service.

@return void
Test the discover controller mocking the service . @return void
@Test
    public void discoverInstancesByName_returnOk() throws Exception {
        mockMvc.perform(MockMvcRequestBuilders.get("/discover?name=test")
            .header("Authorization", "Bearer " + authToken))
            .andExpect(content().contentType(MediaType.APPLICATION_JSON))
            .andExpect(status().isOk());
    }
@ Test public void discoverInstancesByName_returnOk ( ) throws Exception { mockMvc . perform ( MockMvcRequestBuilders . get ( "/discover?name=test" ) . header ( "Authorization" , "Bearer " + authToken ) ) . andExpect ( content ( ) . contentType ( MediaType . APPLICATION_JSON ) ) . andExpect ( status ( ) . isOk ( ) ) ; }
Test the discover controller mocking the service.
Test the discover controller mocking the service .