Search in sources :

Example 1 with SingleValueResult

use of com.hartwig.hmftools.healthchecker.result.SingleValueResult in project hmftools by hartwigmedical.

the class AmberCheckerTest method extractDataFromAmberWorksForSomatic.

@Test
public void extractDataFromAmberWorksForSomatic() throws IOException {
    final RunContext runContext = TestRunContextFactory.forSomaticTest(BASE_DIRECTORY, REF_SAMPLE, TUMOR_SAMPLE);
    final BaseResult result = checker.run(runContext);
    assertEquals(CheckType.AMBER, result.checkType());
    final HealthCheck check = ((SingleValueResult) result).check();
    assertCheck(check, "0.4951");
}
Also used : BaseResult(com.hartwig.hmftools.healthchecker.result.BaseResult) SingleValueResult(com.hartwig.hmftools.healthchecker.result.SingleValueResult) RunContext(com.hartwig.hmftools.common.context.RunContext) Test(org.junit.Test)

Aggregations

RunContext (com.hartwig.hmftools.common.context.RunContext)1 BaseResult (com.hartwig.hmftools.healthchecker.result.BaseResult)1 SingleValueResult (com.hartwig.hmftools.healthchecker.result.SingleValueResult)1 Test (org.junit.Test)1