public class CommitOnlyTest
extends org.eclipse.jgit.junit.RepositoryTestCase
| | expected result --------------------------------------------------------------------- | HEAD DirCache Worktree | HEAD DirCache --------------------------------------------------------------------- f1_1 | - - c | => e: path unknown f1_2 | - c - | => no changes f1_3 | c - - | - - f1_4 | - c c | c c f1_5 | c c - | - - f1_6 | c - c | => no changes f1_7 | c c c | => no changes --------------------------------------------------------------------- f1_8 | - c c' | c' c' f1_9 | c - c' | c' c' f1_10 | c c' - | - - f1_11 | c c c' | c' c' f1_12 | c c' c | => no changes f1_13 | c c' c' | c' c' --------------------------------------------------------------------- f1_14 | c c' c'' | c'' c''II. Scenarios that do not end with a successful commit (1, 2, 6, 7, 12) have to be tested with a second file (f2.txt) specified that would lead to a successful commit, if it were executed separately (e.g. scenario 14).
| | expected result --------------------------------------------------------------------------- | HEAD DirCache Worktree | HEAD DirCache --------------------------------------------------------------------------- f1_1_f2_14 | - - c | => e: path unknown f1_2_f2_14 | - c - | - - f1_6_f2_14 | c - c | c c f1_7_f2_14 | c c c | c c --------------------------------------------------------------------------- f1_12_f2_14 | c c' c | c cIII. All scenarios (1-14, I-II) have to be tested with different repository states, to check that the --only/ -o option does not change existing content (HEAD and DirCache). The following states for a file (f3.txt) not specified shall be tested:
| HEAD DirCache -------------------- *_a | - - *_b | - c *_c | c c *_d | c - -------------------- *_e | c c'
Constructor and Description |
---|
CommitOnlyTest() |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, setUp, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, write
public void testOnlyOption_f1_1_f2_14_a() throws Exception
Exception
public void testOnlyOption_f1_1_f2_14_b() throws Exception
Exception
public void testOnlyOption_f1_1_f2_14_c() throws Exception
Exception
public void testOnlyOption_f1_1_f2_14_d() throws Exception
Exception
public void testOnlyOption_f1_1_f2_14_e() throws Exception
Exception
public void testOnlyOption_f1_2_f2_14_a() throws Exception
Exception
public void testOnlyOption_f1_2_f2_14_b() throws Exception
Exception
public void testOnlyOption_f1_2_f2_14_c() throws Exception
Exception
public void testOnlyOption_f1_2_f2_14_d() throws Exception
Exception
public void testOnlyOption_f1_2_f2_14_e() throws Exception
Exception
public void testOnlyOption_f1_6_f2_14_a() throws Exception
Exception
public void testOnlyOption_f1_6_f2_14_b() throws Exception
Exception
public void testOnlyOption_f1_6_f2_14_c() throws Exception
Exception
public void testOnlyOption_f1_6_f2_14_d() throws Exception
Exception
public void testOnlyOption_f1_6_f2_14_e() throws Exception
Exception
public void testOnlyOption_f1_7_f2_14_a() throws Exception
Exception
public void testOnlyOption_f1_7_f2_14_b() throws Exception
Exception
public void testOnlyOption_f1_7_f2_14_c() throws Exception
Exception
public void testOnlyOption_f1_7_f2_14_d() throws Exception
Exception
public void testOnlyOption_f1_7_f2_14_e() throws Exception
Exception
public void testOnlyOption_f1_12_f2_14_a() throws Exception
Exception
public void testOnlyOption_f1_12_f2_14_b() throws Exception
Exception
public void testOnlyOption_f1_12_f2_14_c() throws Exception
Exception
public void testOnlyOption_f1_12_f2_14_d() throws Exception
Exception
public void testOnlyOption_f1_12_f2_14_e() throws Exception
Exception
Copyright © 2016 Eclipse JGit Project. All rights reserved.