Skip to content

Commit

Permalink
Fix tests after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Hai Yan <[email protected]>
  • Loading branch information
oeyh committed Nov 12, 2024
1 parent cf1a566 commit 9aea7db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,11 @@ private void mockDbTableMetadata() {
final String hostName = UUID.randomUUID().toString();
final int port = new Random().nextInt();

final DbMetadata dbMetadata = new DbMetadata(dbIdentifier, hostName, port);
final DbMetadata dbMetadata = DbMetadata.builder()
.dbIdentifier(dbIdentifier)
.endpoint(hostName)
.port(port)
.build();
final Map<String, Object> map = new HashMap<>();
map.put("dbMetadata", dbMetadata.toMap());
map.put("tableColumnDataTypeMap", tableColumnDataTypeMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ private Map<String, Object> getDbTableMetaDataMap() {
final int port = new Random().nextInt();
final String tableName = UUID.randomUUID().toString();

final DbMetadata dbMetadata = new DbMetadata(dbIdentifier, hostName, port);
final DbMetadata dbMetadata = DbMetadata.builder()
.dbIdentifier(dbIdentifier)
.endpoint(hostName)
.port(port)
.build();
final Map<String, Map<String, String>> tableColumnDataTypeMap = new HashMap<>();
final Map<String, String> columnDataTypeMap = new HashMap<>();
columnDataTypeMap.put("int_column", "INTEGER");
Expand Down

0 comments on commit 9aea7db

Please sign in to comment.