DatabaseSetEntryService { public boolean insertDatabaseSetEntry(DatabaseSetEntry databasesetentry) throws SQLException { Long id = dataBaseSetEntryDao.insertDatabaseSetEntry(databasesetentry); databasesetentry.setId(id); return id > 0; }  ListResult<DatabaseSetEntryView> findDbSetEntryPageList(Paging<DatabaseSetEntry> paging); boolean isNotExistByName(DatabaseSetEntry databasesetentry); boolean insertDatabaseSetEntry(DatabaseSetEntry databasesetentry); ServiceResult<String> addDatabaseSetEntryList(LoginUser user, List<DatabaseSetEntry> dBList); List<String> getNamesByEntryIds(List<Integer> dbset_ids); ServiceResult<String> addDataCenterEntryList(LoginUser user, List<DatabaseSetEntry> dBList); ServiceResult<String> updateDataCenter(LoginUser user, DatabaseSetEntry newDbSetEntry); ServiceResult<String> deleteDataCenter(LoginUser user, DatabaseSetEntry dbsetEntry); ServiceResult<String> syncDbsetEntry(LoginUser user, DatabaseSetEntry dbsetEntry); ConfigCkeckResult<List<ConfigDataResponse>> getCheckData(LoginUser user, DatabaseSetEntry dbsetEntry); ServiceResult getDbSetEntryButton(LoginUser user);  }
@Test public void insertDatabaseSetEntryTest() throws SQLException { DatabaseSetEntry dbsetEntry = DatabaseSetEntry.builder().db_Id(1L).build(); Assert.assertTrue(databaseSetEntryService.isNotExistByName(dbsetEntry)); }