package cmu.defect4j.math3.stat.clustering; import gov.nasa.jpf.util.test.TestJPF; import org.junit.Test; public class KMeansPlusPlusClustererTest extends TestJPF { private final String[] config = {"+nhandler.delegateUnhandledNative", "+classpath+=${jpf-core}/lib/junit-4.11.jar,lib/commons-math-3.1-SNAPSHOT.jar"}; public static void main(String[] testMethods){ runTestsOfThisClass(testMethods); } @Test(timeout=1000000) public void testPerformClusterAnalysisDegenerate() throws Exception { if (verifyNoPropertyViolation(config)) { org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest object = new org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest(); object.testPerformClusterAnalysisDegenerate(); } } @Test(timeout=1000000) public void testCertainSpace() throws Exception { if (verifyNoPropertyViolation(config)) { org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest object = new org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest(); object.testCertainSpace(); } } @Test(timeout=1000000) public void testSmallDistances() throws Exception { if (verifyNoPropertyViolation(config)) { org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest object = new org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest(); object.testSmallDistances(); } } @Test(timeout=1000000) public void testPerformClusterAnalysisToManyClusters() throws Exception { if (verifyUnhandledException("org.apache.commons.math3.exception.NumberIsTooSmallException", config)) { org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest object = new org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest(); object.testPerformClusterAnalysisToManyClusters(); } } @Test(timeout=1000000) public void dimension2() throws Exception { if (verifyNoPropertyViolation(config)) { org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest object = new org.apache.commons.math3.stat.clustering.KMeansPlusPlusClustererTest(); object.dimension2(); } } }