diff options
author | Tomasz Zarna <Tomasz.Zarna@pl.ibm.com> | 2011-03-07 16:47:04 +0100 |
---|---|---|
committer | Chris Aniszczyk <caniszczyk@gmail.com> | 2011-03-07 09:51:37 -0600 |
commit | 440d7f41270f18f430b40d4ce3873d84593a5533 (patch) | |
tree | af584db5b9b78541e4fbebf7f4e14752474b2e9f /org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java | |
parent | 4e187d898aac18c705b3ab6699745c6460e82ae6 (diff) | |
download | jgit-440d7f41270f18f430b40d4ce3873d84593a5533.tar.gz jgit-440d7f41270f18f430b40d4ce3873d84593a5533.zip |
Enable test methods in CommitAndLogCommandTests
Change-Id: I52bbf19416cba42340004f0235e17a436cad1058
Bug: 339086
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java index bc313e87e5..f8e1e03b5b 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java +++ b/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.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 class CommitAndLogCommandTests extends RepositoryTestCase { } // 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 class CommitAndLogCommandTests extends RepositoryTestCase { // 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 class CommitAndLogCommandTests extends RepositoryTestCase { } } + @Test public void testMergeEmptyBranches() throws IOException, NoHeadException, NoMessageException, ConcurrentRefUpdateException, JGitInternalException, WrongRepositoryStateException { @@ -165,6 +170,7 @@ public class CommitAndLogCommandTests extends RepositoryTestCase { assertTrue(parents.length==2); } + @Test public void testAddUnstagedChanges() throws IOException, NoHeadException, NoMessageException, ConcurrentRefUpdateException, JGitInternalException, WrongRepositoryStateException, @@ -197,6 +203,7 @@ public class CommitAndLogCommandTests extends RepositoryTestCase { tw.getObjectId(0).getName()); } + @Test public void testCommitRange() throws NoHeadException, NoMessageException, UnmergedPathException, ConcurrentRefUpdateException, JGitInternalException, WrongRepositoryStateException, |