Search in sources :

Example 1 with SequencingRead

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

the class EntityTest method testSequencingRead.

@Test
public void testSequencingRead() {
    val s1 = new SequencingRead();
    s1.setAnalysisId("a1");
    s1.setAligned(true);
    s1.setAlignmentTool("b1");
    s1.setInsertSize(99999L);
    s1.setLibraryStrategy(LIBRARY_STRATEGIES.get(0));
    s1.setPairedEnd(false);
    s1.setReferenceGenome("c1");
    val s1_same = SequencingRead.create("a1", true, "b1", 99999L, LIBRARY_STRATEGIES.get(0), false, "c1");
    assertEntitiesEqual(s1, s1_same, true);
    val s2 = SequencingRead.create("a2", false, "b2", 55555L, LIBRARY_STRATEGIES.get(1), true, "c2");
    assertEntitiesNotEqual(s1, s2);
    s1.setInfo("key1", "f5c9381090a53c54358feb2ba5b7a3d7");
    s1_same.setInfo("key2", "6329334b-dcd5-53c8-98fd-9812ac386d30");
    assertEntitiesNotEqual(s1, s1_same);
    // Test getters
    assertThat(s1.getAligned()).isTrue();
    assertThat(s1.getAlignmentTool()).isEqualTo("b1");
    assertThat(s1.getAnalysisId()).isEqualTo("a1");
    assertThat(s1.getInsertSize()).isEqualTo(99999L);
    assertThat(s1.getLibraryStrategy()).isEqualTo(LIBRARY_STRATEGIES.get(0));
    assertThat(s1.getPairedEnd()).isFalse();
    assertThat(s1.getReferenceGenome()).isEqualTo("c1");
    assertInfoKVPair(s1, "key1", "f5c9381090a53c54358feb2ba5b7a3d7");
}
Also used : lombok.val(lombok.val) SequencingRead(org.icgc.dcc.song.server.model.experiment.SequencingRead) Test(org.junit.Test)

Aggregations

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