Пример #1
0
  @Test
  public void testInitialState() {
    assertNotNull(frag.getSequence());
    assertNotNull(frag.getQuality());

    assertNull(frag.getInstrument());
    assertNull(frag.getRunNumber());
    assertNull(frag.getFlowcellId());
    assertNull(frag.getLane());
    assertNull(frag.getTile());
    assertNull(frag.getXpos());
    assertNull(frag.getYpos());
    assertNull(frag.getRead());
    assertNull(frag.getFilterPassed());
    assertNull(frag.getControlNumber());
    assertNull(frag.getIndexSequence());

    assertNotNull(frag.toString());
  }
Пример #2
0
  @Test
  public void testToString() {
    String seq = "AGTAGTAGTAGTAGTAGTAGTAGTAGTAGT";
    String qual = "##############################";
    frag.setSequence(new Text(seq));
    frag.setQuality(new Text(qual));

    frag.setInstrument("machine");
    frag.setRunNumber(123);
    frag.setFlowcellId("flowcell");
    frag.setLane(3);
    frag.setTile(1001);
    frag.setXpos(1234);
    frag.setYpos(4321);
    frag.setIndexSequence("CAT");
    frag.setRead(1);

    assertEquals(
        "machine\t123\tflowcell\t3\t1001\t1234\t4321\tCAT\t1\t" + seq + "\t" + qual + "\t1",
        frag.toString());
  }