Skip to content

Commit b4fe461

Browse files
committed
add refresh branch test
1 parent 5192c69 commit b4fe461

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

platform-api/src/test/java/com/flow/platform/api/test/service/GitServiceTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ public void should_list_branches_of_git_repo() {
105105
Assert.assertEquals("master", branches.get(1));
106106
}
107107

108+
@Test
109+
public void should_refresh_branches_of_git_repo() {
110+
List<String> branches = gitService.refreshBranches(node);
111+
Assert.assertNotNull(branches);
112+
Assert.assertEquals("develop", branches.get(0));
113+
Assert.assertEquals("master", branches.get(1));
114+
}
115+
108116
@Test
109117
public void should_list_tags_of_git_repo() {
110118
List<String> tags = gitService.tags(node);

0 commit comments

Comments
 (0)