Author: pmouawad Date: Tue Sep 12 21:08:57 2017 New Revision: 1808170 URL: http://svn.apache.org/viewvc?rev=1808170&view=rev Log: Fix test failure
Modified: jmeter/trunk/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java Modified: jmeter/trunk/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java?rev=1808170&r1=1808169&r2=1808170&view=diff ============================================================================== --- jmeter/trunk/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java (original) +++ jmeter/trunk/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java Tue Sep 12 21:08:57 2017 @@ -24,6 +24,7 @@ import static org.junit.Assert.assertTru import static org.junit.Assert.fail; import java.io.FileNotFoundException; +import java.nio.file.NoSuchFileException; import org.apache.jmeter.junit.JMeterTestCase; import org.junit.Test; @@ -35,13 +36,9 @@ import org.junit.Test; */ public class TestFileRowColContainer extends JMeterTestCase { - @Test + @Test(expected=NoSuchFileException.class) public void testNull() throws Exception { - try { - new FileRowColContainer(findTestPath("testfiles/xyzxyz")); - fail("Should not find the file"); - } catch (FileNotFoundException e) { - } + new FileRowColContainer(findTestPath("testfiles/xyzxyz")); } @Test