
org.snpeff.snpEffect.testCases.integration.TestCasesIntegrationConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SnpEff Show documentation
Show all versions of SnpEff Show documentation
Variant annotation and effect prediction package.
The newest version!
package org.snpeff.snpEffect.testCases.integration;
import org.junit.Test;
import org.snpeff.SnpEff;
import org.snpeff.snpEffect.Config;
import org.snpeff.util.Gpr;
import junit.framework.Assert;
/**
* Test case
*/
public class TestCasesIntegrationConfig extends TestCasesIntegrationBase {
/**
* Check that config file can be overriden by command line options
*/
@Test
public void test_01_ConfigOverride() {
Gpr.debug("Test");
// Create command
String repo = "http://nonsense.url/test/zzz";
String args[] = { //
"-configOption" //
, Config.KEY_DATABASE_REPOSITORY + "=" + repo //
, "testHg3775Chr22" //
, path("test_ann_01.vcf") //
};
// Create command and run
SnpEff cmd = new SnpEff(args);
cmd.setSupressOutput(!verbose);
cmd.setVerbose(verbose);
cmd.setDebug(debug);
cmd.run();
// Check that config option really changed
if (verbose) System.out.println("Repository: " + cmd.getConfig().getDatabaseRepository());
Assert.assertEquals(repo, cmd.getConfig().getDatabaseRepository());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy