Enable test methods in CommitAndLogCommandTests

Change-Id: I52bbf19416cba42340004f0235e17a436cad1058
Bug: 339086
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
This commit is contained in:
Tomasz Zarna 2011-03-07 16:47:04 +01:00 committed by Chris Aniszczyk
parent 4e187d898a
commit 440d7f4127
1 changed files with 7 additions and 0 deletions

View File

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