Browse Source

Enable test methods in CommitAndLogCommandTests

Change-Id: I52bbf19416cba42340004f0235e17a436cad1058
Bug: 339086
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
stable-0.12
Tomasz Zarna 14 years ago committed by Chris Aniszczyk
parent
commit
440d7f4127
  1. 7
      org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java

7
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java

@ -67,8 +67,10 @@ import org.eclipse.jgit.lib.RepositoryTestCase;
import org.eclipse.jgit.revwalk.RevCommit; import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.treewalk.TreeWalk; import org.eclipse.jgit.treewalk.TreeWalk;
import org.eclipse.jgit.util.FileUtils; import org.eclipse.jgit.util.FileUtils;
import org.junit.Test;
public class CommitAndLogCommandTests extends RepositoryTestCase { public class CommitAndLogCommandTests extends RepositoryTestCase {
@Test
public void testSomeCommits() throws NoHeadException, NoMessageException, public void testSomeCommits() throws NoHeadException, NoMessageException,
UnmergedPathException, ConcurrentRefUpdateException, UnmergedPathException, ConcurrentRefUpdateException,
JGitInternalException, WrongRepositoryStateException { JGitInternalException, WrongRepositoryStateException {
@ -103,6 +105,7 @@ public class CommitAndLogCommandTests extends RepositoryTestCase {
} }
// try to do a commit without specifying a message. Should fail! // try to do a commit without specifying a message. Should fail!
@Test
public void testWrongParams() throws UnmergedPathException, public void testWrongParams() throws UnmergedPathException,
NoHeadException, ConcurrentRefUpdateException, NoHeadException, ConcurrentRefUpdateException,
JGitInternalException, WrongRepositoryStateException { JGitInternalException, WrongRepositoryStateException {
@ -117,6 +120,7 @@ public class CommitAndLogCommandTests extends RepositoryTestCase {
// try to work with Commands after command has been invoked. Should throw // try to work with Commands after command has been invoked. Should throw
// exceptions // exceptions
@Test
public void testMultipleInvocations() throws NoHeadException, public void testMultipleInvocations() throws NoHeadException,
ConcurrentRefUpdateException, NoMessageException, ConcurrentRefUpdateException, NoMessageException,
UnmergedPathException, JGitInternalException, UnmergedPathException, JGitInternalException,
@ -142,6 +146,7 @@ public class CommitAndLogCommandTests extends RepositoryTestCase {
} }
} }
@Test
public void testMergeEmptyBranches() throws IOException, NoHeadException, public void testMergeEmptyBranches() throws IOException, NoHeadException,
NoMessageException, ConcurrentRefUpdateException, NoMessageException, ConcurrentRefUpdateException,
JGitInternalException, WrongRepositoryStateException { JGitInternalException, WrongRepositoryStateException {
@ -165,6 +170,7 @@ public class CommitAndLogCommandTests extends RepositoryTestCase {
assertTrue(parents.length==2); assertTrue(parents.length==2);
} }
@Test
public void testAddUnstagedChanges() throws IOException, NoHeadException, public void testAddUnstagedChanges() throws IOException, NoHeadException,
NoMessageException, ConcurrentRefUpdateException, NoMessageException, ConcurrentRefUpdateException,
JGitInternalException, WrongRepositoryStateException, JGitInternalException, WrongRepositoryStateException,
@ -197,6 +203,7 @@ public class CommitAndLogCommandTests extends RepositoryTestCase {
tw.getObjectId(0).getName()); tw.getObjectId(0).getName());
} }
@Test
public void testCommitRange() throws NoHeadException, NoMessageException, public void testCommitRange() throws NoHeadException, NoMessageException,
UnmergedPathException, ConcurrentRefUpdateException, UnmergedPathException, ConcurrentRefUpdateException,
JGitInternalException, WrongRepositoryStateException, JGitInternalException, WrongRepositoryStateException,

Loading…
Cancel
Save