Fixing unit tests to register the user exception being thrown (instead of the NumberFormatException)

This commit is contained in:
Eric Banks 2012-04-23 10:06:51 -04:00
parent 63aa79df82
commit cd63bcb1b8
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ package org.broadinstitute.sting.utils.variantcontext;
import org.broadinstitute.sting.utils.MathUtils;
import org.broadinstitute.sting.utils.exceptions.UserException;
import org.testng.Assert;
import org.testng.annotations.Test;
import org.broadinstitute.sting.utils.codecs.vcf.VCFConstants;
@ -66,7 +67,7 @@ public class GenotypeLikelihoodsUnitTest {
Assert.assertEquals(gl.getAsString(), vPLString);
}
@Test (expectedExceptions = NumberFormatException.class)
@Test (expectedExceptions = UserException.MalformedVCF.class)
public void testErrorBadFormat() {
GenotypeLikelihoods gl = new GenotypeLikelihoods("adf,b,c");
gl.getAsVector();