FastqToSsake implements Callable<Integer> { static boolean isRight(final Fastq fastq) { return RIGHT.matcher(fastq.getDescription()).matches(); } FastqToSsake(final File firstFastqFile, final File secondFastqFile, final File ssakeFile, final int insertSize, final File unpairedFile); @Override Integer call(); static void main(final String[] args); static final int DEFAULT_INSERT_SIZE; }
@Test public void testIsRight() { for (Fastq fastq : LEFT) { assertFalse(isRight(fastq)); } for (Fastq fastq : RIGHT) { assertTrue(isRight(fastq)); } for (Fastq fastq : INVALID) { assertFalse(isRight(fastq)); } }