/** * performs the actual test. */ protected void performTest() { Instances icopy = new Instances(m_Instances); Instances result = null; try { m_Filter.setInputFormat(icopy); } catch (Exception ex) { ex.printStackTrace(); fail("Exception thrown on setInputFormat(): \n" + ex.getMessage()); } try { result = Filter.useFilter(icopy, m_Filter); assertNotNull(result); } catch (Exception ex) { ex.printStackTrace(); fail("Exception thrown on useFilter(): \n" + ex.getMessage()); } assertEquals(icopy.numInstances(), result.numInstances()); }
/** * performs the actual test. */ protected void performTest() { Instances icopy = new Instances(m_Instances); Instances result = null; try { m_Filter.setInputFormat(icopy); } catch (Exception ex) { ex.printStackTrace(); fail("Exception thrown on setInputFormat(): \n" + ex.getMessage()); } try { result = Filter.useFilter(icopy, m_Filter); assertNotNull(result); } catch (Exception ex) { ex.printStackTrace(); fail("Exception thrown on useFilter(): \n" + ex.getMessage()); } assertEquals(icopy.numInstances(), result.numInstances()); }