2 import org
.de
.metux
.util
.*;
3 import org
.de
.metux
.dbObjects
.*;
5 public class _unit_test
7 public static void main(String
[] args
) {}
10 public class _unit_test extends Tester
12 public static void main(String[] args)
26 / * test imported str_replace() function - just in case the compiler
27 makes trouble (gcj seems to have some bugs when linking against
29 public static boolean test_str_replace()
34 "hello world 123 huh",
35 StrReplace.replace("<XXX>", "123", "hello world <XXX> huh" )
39 public static boolean test_sql_int()
45 new Int ( 1234 ).toSQL()
49 public static boolean test_sql_text1()
55 new Text ( "hello world" ).toSQL()
59 public static boolean test_sql_text2()
64 "'\\'hello world\\''",
65 new Text ( "'hello world'" ).toSQL()
69 public static boolean test_sql_text3()
74 "'\\'hello world\\\\'",
75 new Text ( "'hello world\\" ).toSQL()