Skip to content

Commit

Permalink
#28543 Add unit test for GovernanceRepositoryAPIImpl.isExisted
Browse files Browse the repository at this point in the history
  • Loading branch information
anogueiraFlywire committed Oct 13, 2023
1 parent 278dcff commit 7dbd497
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ private static void watch() {
});
}

@Test
void assertIsExisted() {
String testKey = "/testKey1";
assertFalse(governanceRepositoryAPI.isExisted(testKey));
governanceRepositoryAPI.persist(testKey, "testValue1");
assertTrue(governanceRepositoryAPI.isExisted(testKey));
}

@Test
void assertPersistJobItemProgress() {
MigrationJobItemContext jobItemContext = mockJobItemContext();
Expand Down

0 comments on commit 7dbd497

Please sign in to comment.