]> source.dussan.org Git - jgit.git/commitdiff
Remove unnecessary failing test method 13/1613/2
authorStefan Lay <stefan.lay@sap.com>
Fri, 17 Sep 2010 14:24:08 +0000 (16:24 +0200)
committerStefan Lay <stefan.lay@sap.com>
Fri, 17 Sep 2010 14:24:08 +0000 (16:24 +0200)
Method test006_readCaseInsensitive in TestConfig already does the
same thing, and doesn't require an OS specific test for the value being
asserted.
This is additionally a fast fix for the failing JUnit test after
change 3fe5276.

Change-Id: I96d2794dbc7db55bdd0fbfcf675aabb15cc8419f
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_Basic.java

index baa35f274b553e8873d2f22fcb45c861c0348e69..c874557b76d8546f7c7d3a04b979846b33f8f458 100644 (file)
@@ -60,7 +60,6 @@ import org.eclipse.jgit.errors.IncorrectObjectTypeException;
 import org.eclipse.jgit.errors.MissingObjectException;
 import org.eclipse.jgit.lib.AnyObjectId;
 import org.eclipse.jgit.lib.CommitBuilder;
-import org.eclipse.jgit.lib.Config;
 import org.eclipse.jgit.lib.Constants;
 import org.eclipse.jgit.lib.FileTreeEntry;
 import org.eclipse.jgit.lib.ObjectDatabase;
@@ -310,16 +309,6 @@ public class T0003_Basic extends SampleDataRepositoryTestCase {
                assertTrue("Read-only " + o, !o.canWrite());
        }
 
-       public void test005_ReadSimpleConfig() {
-               final Config c = db.getConfig();
-               assertNotNull(c);
-               assertEquals("0", c.getString("core", null, "repositoryformatversion"));
-               assertEquals("0", c.getString("CoRe", null, "REPOSITORYFoRmAtVeRsIoN"));
-               assertEquals("true", c.getString("core", null, "filemode"));
-               assertEquals("true", c.getString("cOrE", null, "fIlEModE"));
-               assertNull(c.getString("notavalue", null, "reallyNotAValue"));
-       }
-
        public void test006_ReadUglyConfig() throws IOException,
                        ConfigInvalidException {
                final File cfg = new File(db.getDirectory(), "config");