@Test public void testGetAllTables() throws Exception { Map<String, List<Table>> results = new HashMap<>(); results.put("table", new ArrayList<>()); given(hiveMetaStoreService.getAllTable()).willReturn(results); mockMvc.perform(get(URLHelper.API_VERSION_PATH + "/metadata/hive/dbs/tables")) .andExpect(status().isOk()) .andExpect(jsonPath("$.table", hasSize(0))); }
@RequestMapping(value = "/tables", method = RequestMethod.GET) public List<Table> getAllTables(@RequestParam("db") String dbName) { return hiveMetaStoreService.getAllTable(dbName); }
HiveMetaStoreController { @RequestMapping(value = "/tables", method = RequestMethod.GET) public List<Table> getAllTables(@RequestParam("db") String dbName) { return hiveMetaStoreService.getAllTable(dbName); } }
HiveMetaStoreController { @RequestMapping(value = "/tables", method = RequestMethod.GET) public List<Table> getAllTables(@RequestParam("db") String dbName) { return hiveMetaStoreService.getAllTable(dbName); }  }
HiveMetaStoreController { @RequestMapping(value = "/tables", method = RequestMethod.GET) public List<Table> getAllTables(@RequestParam("db") String dbName) { return hiveMetaStoreService.getAllTable(dbName); }  @RequestMapping(value = "/dbs", method = RequestMethod.GET) Iterable<String> getAllDatabases(); @RequestMapping(value = "/tables/names", method = RequestMethod.GET) Iterable<String> getAllTableNames(@RequestParam("db") String dbName); @RequestMapping(value = "/tables", method = RequestMethod.GET) List<Table> getAllTables(@RequestParam("db") String dbName); @RequestMapping(value = "/dbs/tables", method = RequestMethod.GET) Map<String, List<Table>> getAllTables(); @RequestMapping(value = "/dbs/tables/names", method = RequestMethod.GET) Map<String, List<String>> getAllTableNames(); @RequestMapping(value = "/table", method = RequestMethod.GET) Table getTable(@RequestParam("db") String dbName,
                          @RequestParam("table") String tableName); }
HiveMetaStoreController { @RequestMapping(value = "/tables", method = RequestMethod.GET) public List<Table> getAllTables(@RequestParam("db") String dbName) { return hiveMetaStoreService.getAllTable(dbName); }  @RequestMapping(value = "/dbs", method = RequestMethod.GET) Iterable<String> getAllDatabases(); @RequestMapping(value = "/tables/names", method = RequestMethod.GET) Iterable<String> getAllTableNames(@RequestParam("db") String dbName); @RequestMapping(value = "/tables", method = RequestMethod.GET) List<Table> getAllTables(@RequestParam("db") String dbName); @RequestMapping(value = "/dbs/tables", method = RequestMethod.GET) Map<String, List<Table>> getAllTables(); @RequestMapping(value = "/dbs/tables/names", method = RequestMethod.GET) Map<String, List<String>> getAllTableNames(); @RequestMapping(value = "/table", method = RequestMethod.GET) Table getTable(@RequestParam("db") String dbName,
                          @RequestParam("table") String tableName);  }