Browse Source

Remove unnecessary failing test method

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>
tags/v0.10.1
Stefan Lay 13 years ago
parent
commit
b4eecfc462

+ 0
- 11
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_Basic.java View 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");

Loading…
Cancel
Save