use of org.broadinstitute.hellbender.engine.AuthHolder in project gatk-protected by broadinstitute.
the class HaplotypeCallerSparkIntegrationTest method testReferenceAdapterIsSerializable.
@Test
public void testReferenceAdapterIsSerializable() throws IOException {
final AuthHolder auth = new AuthHolder("name", "somestring");
final ReferenceMultiSource referenceMultiSource = new ReferenceMultiSource(auth, b37_2bit_reference_20_21, ReferenceWindowFunctions.IDENTITY_FUNCTION);
SparkTestUtils.roundTripInKryo(referenceMultiSource, ReferenceMultiSource.class, SparkContextFactory.getTestSparkContext().getConf());
final HaplotypeCallerSpark.ReferenceMultiSourceAdapter adapter = new HaplotypeCallerSpark.ReferenceMultiSourceAdapter(referenceMultiSource, auth);
SparkTestUtils.roundTripInKryo(adapter, HaplotypeCallerSpark.ReferenceMultiSourceAdapter.class, SparkContextFactory.getTestSparkContext().getConf());
}
use of org.broadinstitute.hellbender.engine.AuthHolder in project gatk by broadinstitute.
the class HaplotypeCallerSparkIntegrationTest method testReferenceAdapterIsSerializable.
@Test
public void testReferenceAdapterIsSerializable() throws IOException {
final AuthHolder auth = new AuthHolder("name", "somestring");
final ReferenceMultiSource referenceMultiSource = new ReferenceMultiSource(auth, b37_2bit_reference_20_21, ReferenceWindowFunctions.IDENTITY_FUNCTION);
SparkTestUtils.roundTripInKryo(referenceMultiSource, ReferenceMultiSource.class, SparkContextFactory.getTestSparkContext().getConf());
final HaplotypeCallerSpark.ReferenceMultiSourceAdapter adapter = new HaplotypeCallerSpark.ReferenceMultiSourceAdapter(referenceMultiSource, auth);
SparkTestUtils.roundTripInKryo(adapter, HaplotypeCallerSpark.ReferenceMultiSourceAdapter.class, SparkContextFactory.getTestSparkContext().getConf());
}
Aggregations