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