Skip to content

Commit

Permalink
#28543 Add unit test for GovernanceRepositoryAPIImpl.isExisted (#28755)
Browse files Browse the repository at this point in the history
  • Loading branch information
anogueiraFlywire authored Oct 14, 2023
1 parent 5a53631 commit ada9f9f
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 ada9f9f

Please sign in to comment.