| Issue 11: | Running test useing data provider with char "\n" (new line) as argument | |
| 1 person starred this issue and may be notified of changes. | Back to list |
After execute of this test testng plugin hangs on.
It is probably problem with "\n" char which elipse try to paint in plugin
window [testCrash("text \n")].
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class someClassTest {
@Test(dataProvider = "dp")
public void testCrash(String text) {
System.out.println( text );
}
@DataProvider(name = "dp")
public Object[][] getData() {
return new Object[][] { { "text \n" } };
}
}
Testng plugin 5.5.0.1
Eclipse 3.2.2
Java 1.6.0_01-b06
Jun 18, 2007
#1
tmadry...@gmail.com
Nov 27, 2008
Testng still freezes if i launch this test on : Testng plugin : 5.8.0.2 Eclipse : 3.4.1 Platform : Mac OS 10.5.5 Java VM : 1.5.0_16-133 |