()
| 485 | } |
| 486 | |
| 487 | public static void test2() throws IOException |
| 488 | { // test rig |
| 489 | String templates = "t1(q1=\"Some\\nText\") ::= <<\n"+"<q1>\n"+">>\n"+"\n"+"t2(p1) ::= <<\n"+"<p1>\n"+">>\n"+"\n"+"main() ::= <<\n"+"START-<t1()>-END\n"+"\n"+"START-<t2(p1=\"Some\\nText\")>-END\n"+">>\n"; |
| 490 | String tmpdir = System.getProperty("java.io.tmpdir"); |
| 491 | writeFile(tmpdir, "t.stg", templates); |
| 492 | STGroup group = new STGroupFile(tmpdir+"/"+"t.stg"); |
| 493 | ST st = group.getInstanceOf("main"); |
| 494 | STViz viz = st.inspect(); |
| 495 | } |
| 496 | |
| 497 | public static void test3() throws IOException |
| 498 | { |
no test coverage detected