Skip to content

Commit

Permalink
Add storageType field to HouseTable Entity #80
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrezzo committed Apr 22, 2024
1 parent 24266de commit 8ff7d67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ public class HouseTable {
private long lastModifiedTime;

private long creationTime;

private String storageType;
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public void testRepoSave() {
Assertions.assertEquals(result.getDatabaseId(), HOUSE_TABLE.getDatabaseId());
Assertions.assertEquals(result.getTableLocation(), HOUSE_TABLE.getTableLocation());
Assertions.assertEquals(result.getTableVersion(), HOUSE_TABLE.getTableVersion());
Assertions.assertEquals(result.getStorageType(), HOUSE_TABLE.getStorageType());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class HouseTableModelConstants {
.tableLocation("loc1")
.tableVersion(String.valueOf(new Random().nextLong()))
.tableUUID(UUID.randomUUID().toString())
.storageType("st")
.build();

public static final HouseTable HOUSE_TABLE_SAME_DB =
Expand All @@ -36,6 +37,7 @@ public class HouseTableModelConstants {
.tableLocation("loc2")
.tableVersion(String.valueOf(new Random().nextLong()))
.tableUUID(UUID.randomUUID().toString())
.storageType("st")
.build();

public static final HouseTable HOUSE_TABLE_DIFF_DB =
Expand All @@ -47,5 +49,6 @@ public class HouseTableModelConstants {
.tableLocation("loc3")
.tableVersion(String.valueOf(new Random().nextLong()))
.tableUUID(UUID.randomUUID().toString())
.storageType("st")
.build();
}

0 comments on commit 8ff7d67

Please sign in to comment.