Search in sources :

Example 1 with VariantCall

use of org.icgc.dcc.song.server.model.experiment.VariantCall in project SONG by overture-stack.

the class EntityTest method testVariantCall.

@Test
public void testVariantCall() {
    val v1 = new VariantCall();
    v1.setAnalysisId("a1");
    v1.setMatchedNormalSampleSubmitterId("b1");
    v1.setVariantCallingTool("c1");
    val v1_same = VariantCall.create("a1", "c1", "b1");
    assertEntitiesEqual(v1, v1_same, true);
    val v2 = VariantCall.create("a2", "c2", "b2");
    assertEntitiesNotEqual(v1, v2);
    v1.setInfo("key1", "f5c9381090a53c54358feb2ba5b7a3d7");
    v1_same.setInfo("key2", "6329334b-dcd5-53c8-98fd-9812ac386d30");
    assertEntitiesNotEqual(v1, v1_same);
    // / Test getters
    assertThat(v1.getAnalysisId()).isEqualTo("a1");
    assertThat(v1.getMatchedNormalSampleSubmitterId()).isEqualTo("b1");
    assertThat(v1.getVariantCallingTool()).isEqualTo("c1");
    assertInfoKVPair(v1, "key1", "f5c9381090a53c54358feb2ba5b7a3d7");
}
Also used : lombok.val(lombok.val) VariantCall(org.icgc.dcc.song.server.model.experiment.VariantCall) Test(org.junit.Test)

Aggregations

lombok.val (lombok.val)1 VariantCall (org.icgc.dcc.song.server.model.experiment.VariantCall)1 Test (org.junit.Test)1