CheckoutCommandTest: Add comment to document intentionally empty catch block
Change-Id: I5156c3c2de67be015ef1d785fcf6084919765635 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
55a5fdb3a1
commit
6df350ee0e
|
@ -145,6 +145,7 @@ public void testCheckoutForced() throws Exception {
|
|||
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…
Reference in New Issue