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