Browse Source

document empty blocks in StashApplyCommandTest

Change-Id: I5b49bd00b00b86584b912fc5f503abf29db0f56e
tags/v3.1.0.201309270735-rc1
Tomasz Zarna 11 years ago
parent
commit
28ab9b8393

+ 3
- 0
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StashApplyCommandTest.java View File

git.stashApply().call(); git.stashApply().call();
fail("Exception not thrown"); fail("Exception not thrown");
} catch (StashApplyFailureException e) { } catch (StashApplyFailureException e) {
// expected
} }
assertEquals("content3", read(PATH)); assertEquals("content3", read(PATH));
} }
git.stashApply().call(); git.stashApply().call();
fail("Expected conflict"); fail("Expected conflict");
} catch (StashApplyFailureException e) { } catch (StashApplyFailureException e) {
// expected
} }
Status status = new StatusCommand(db).call(); Status status = new StatusCommand(db).call();
assertEquals(1, status.getConflicting().size()); assertEquals(1, status.getConflicting().size());
git.stashApply().call(); git.stashApply().call();
fail("Exception not thrown"); fail("Exception not thrown");
} catch (StashApplyFailureException e) { } catch (StashApplyFailureException e) {
// expected
} }
assertEquals("content2", read(PATH)); assertEquals("content2", read(PATH));
} }

Loading…
Cancel
Save