()
| 491 | } |
| 492 | |
| 493 | public static void test2() throws IOException |
| 494 | { // test rig |
| 495 | 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"; |
| 496 | String tmpdir = System.getProperty("java.io.tmpdir"); |
| 497 | writeFile(tmpdir, "t.stg", templates); |
| 498 | STGroup group = new STGroupFile(tmpdir+"/"+"t.stg"); |
| 499 | ST st = group.getInstanceOf("main"); |
| 500 | STViz viz = st.inspect(); |
| 501 | } |
| 502 | |
| 503 | public static void test3() throws IOException |
| 504 | { |
no test coverage detected