소스 검색

CheckoutCommandTest: Add comment to document intentionally empty catch block

Change-Id: I5156c3c2de67be015ef1d785fcf6084919765635
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
tags/v5.3.0.201903061415-rc1
David Pursehouse 5 년 전
부모
커밋
6df350ee0e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CheckoutCommandTest.java

+ 1
- 0
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CheckoutCommandTest.java 파일 보기

@@ -145,6 +145,7 @@ public class CheckoutCommandTest extends RepositoryTestCase {
git.checkout().setName("master").call().getObjectId();
fail("Expected CheckoutConflictException didn't occur");
} catch (CheckoutConflictException e) {
// Expected
}
assertEquals(initialCommit.getId(), git.checkout().setName("master")
.setForced(true).call().getObjectId());

Loading…
취소
저장