/** * */ package testsuite.simple; import testsuite.BaseTestCase; /** * @author Tonci * */ public class TestBug17402 extends BaseTestCase { /** * @param name */ public TestBug17402(String name) { super(name); // TODO Auto-generated constructor stub } public void testBug17402() throws Exception { /* System.out.println("java.vm.version : " + System.getProperty("java.vm.version")); System.out.println("java.vm.vendor : " + System.getProperty("java.vm.vendor")); System.out.println("java.runtime.version : " + System.getProperty("java.runtime.version")); System.out.println("os.name : " + System.getProperty("os.name")); System.out.println("os.version : " + System.getProperty("os.version ")); System.out.println("sun.management.compiler : " + System.getProperty("sun.management.compiler")); */ try { createTable("bug17402", "(ID INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, IMPORTANTDATA VARCHAR(255))"); assertEquals(1, this.stmt.executeUpdate("INSERT INTO bug17402 (ID,IMPORTANTDATA) VALUES (1,'Plain text.');")); assertEquals(1, this.stmt.executeUpdate("INSERT INTO bug17402 (ID,IMPORTANTDATA) VALUES (2,'Text - with one hyphen.');")); assertEquals(1, this.stmt.executeUpdate("INSERT INTO bug17402 (ID,IMPORTANTDATA) VALUES (3,'-- Choose one --');")); assertEquals(1, this.stmt.executeUpdate("INSERT INTO bug17402 (ID,IMPORTANTDATA) VALUES (4,'Inlined -- hyphens');")); } finally { closeMemberJDBCResources(); } } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub junit.textui.TestRunner.run(TestBug17402.class); } }