HgExe.version() is now being implicitly tested by MercurialRule, so we do not need a separate test case for it.
@@ -33,7 +33,6 @@ import hudson.model.TaskListener;
import hudson.tools.ToolProperty;
import hudson.util.ArgumentListBuilder;
import hudson.util.StreamTaskListener;
-import hudson.util.VersionNumber;
import java.io.File;
import java.nio.charset.Charset;
import java.util.Collections;
@@ -42,8 +41,6 @@ import java.util.regex.Pattern;
import org.apache.commons.io.FileUtils;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@@ -122,13 +119,4 @@ public class HgExeFunctionalTest {
assertEquals("hg --config defaults.clone=--uncompressed clone http://some.thing/", b.toString());
}
- @Test public void checkVersion() throws Exception {
- HgExe hgexe = new HgExe(
- this.mercurialInstallation, null,
- this.launcher, j.jenkins,
- this.listener, this.vars);
- String version = hgexe.version();
- assertNotNull(version);
- assertTrue(new VersionNumber(version).compareTo(new VersionNumber("1.0")) >= 0);
- }
}
