@Test void getDatabases() { when(restAPI.getDatabases(SERVER_NAME, USER, FROM, PAGE_SIZE)).thenReturn(null); resource.getDatabases(SERVER_NAME, USER, FROM, PAGE_SIZE); verify(restAPI, times(1)).getDatabases(SERVER_NAME, USER, FROM, PAGE_SIZE); }
@GetMapping(path = "/databases") public AnalyticsModelingOMASAPIResponse getDatabases( @PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PositiveOrZero(message = "startFrom should be a positive number") @RequestParam Integer startFrom, @PositiveOrZero(message = "pageSize should be a positive number") @RequestParam Integer pageSize ) { return restAPI.getDatabases(serverName, userId, startFrom, pageSize); }
AnalyticsModelingOMASResource { @GetMapping(path = "/databases") public AnalyticsModelingOMASAPIResponse getDatabases( @PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PositiveOrZero(message = "startFrom should be a positive number") @RequestParam Integer startFrom, @PositiveOrZero(message = "pageSize should be a positive number") @RequestParam Integer pageSize ) { return restAPI.getDatabases(serverName, userId, startFrom, pageSize); } }
AnalyticsModelingOMASResource { @GetMapping(path = "/databases") public AnalyticsModelingOMASAPIResponse getDatabases( @PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PositiveOrZero(message = "startFrom should be a positive number") @RequestParam Integer startFrom, @PositiveOrZero(message = "pageSize should be a positive number") @RequestParam Integer pageSize ) { return restAPI.getDatabases(serverName, userId, startFrom, pageSize); }  }
AnalyticsModelingOMASResource { @GetMapping(path = "/databases") public AnalyticsModelingOMASAPIResponse getDatabases( @PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PositiveOrZero(message = "startFrom should be a positive number") @RequestParam Integer startFrom, @PositiveOrZero(message = "pageSize should be a positive number") @RequestParam Integer pageSize ) { return restAPI.getDatabases(serverName, userId, startFrom, pageSize); }  @GetMapping(path = "/databases") AnalyticsModelingOMASAPIResponse getDatabases(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
            @PositiveOrZero(message = "startFrom should be a positive number")
            @RequestParam Integer startFrom,
            @PositiveOrZero(message = "pageSize should be a positive number")
            @RequestParam Integer pageSize
            ); @GetMapping(path = "/{dataSourceGUID}/schemas") AnalyticsModelingOMASAPIResponse getSchemas(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
            @PathVariable("dataSourceGUID") String dataSource,
            @PositiveOrZero(message = "startFrom should be a positive number")
            @RequestParam Integer startFrom,
            @PositiveOrZero(message = "pageSize should be a positive number")
            @RequestParam Integer pageSize
			); @PostMapping(path = "/{dataSourceGUID}/tables") AnalyticsModelingOMASAPIResponse getTables(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
			@PathVariable("dataSourceGUID") String dataSource,
			@RequestParam(required = false) String catalog,
			@RequestParam(required = true) String schema,
			@RequestBody(required=false) Object request
			); @PostMapping(path = "/{dataSourceGUID}/physicalModule") AnalyticsModelingOMASAPIResponse getPhysicalModule(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
			@PathVariable("dataSourceGUID") String dataSource,
			@RequestParam(required=false) String catalog,
			@RequestParam(required=true) String schema,
			@RequestBody(required=false) Object request
			); }
AnalyticsModelingOMASResource { @GetMapping(path = "/databases") public AnalyticsModelingOMASAPIResponse getDatabases( @PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PositiveOrZero(message = "startFrom should be a positive number") @RequestParam Integer startFrom, @PositiveOrZero(message = "pageSize should be a positive number") @RequestParam Integer pageSize ) { return restAPI.getDatabases(serverName, userId, startFrom, pageSize); }  @GetMapping(path = "/databases") AnalyticsModelingOMASAPIResponse getDatabases(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
            @PositiveOrZero(message = "startFrom should be a positive number")
            @RequestParam Integer startFrom,
            @PositiveOrZero(message = "pageSize should be a positive number")
            @RequestParam Integer pageSize
            ); @GetMapping(path = "/{dataSourceGUID}/schemas") AnalyticsModelingOMASAPIResponse getSchemas(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
            @PathVariable("dataSourceGUID") String dataSource,
            @PositiveOrZero(message = "startFrom should be a positive number")
            @RequestParam Integer startFrom,
            @PositiveOrZero(message = "pageSize should be a positive number")
            @RequestParam Integer pageSize
			); @PostMapping(path = "/{dataSourceGUID}/tables") AnalyticsModelingOMASAPIResponse getTables(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
			@PathVariable("dataSourceGUID") String dataSource,
			@RequestParam(required = false) String catalog,
			@RequestParam(required = true) String schema,
			@RequestBody(required=false) Object request
			); @PostMapping(path = "/{dataSourceGUID}/physicalModule") AnalyticsModelingOMASAPIResponse getPhysicalModule(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
			@PathVariable("dataSourceGUID") String dataSource,
			@RequestParam(required=false) String catalog,
			@RequestParam(required=true) String schema,
			@RequestBody(required=false) Object request
			);  }