    1   package test.net.sourceforge.pmd.ast;
    2
    3   import net.sourceforge.pmd.PMD;
    4   import net.sourceforge.pmd.ast.ASTInitializer;
    5   import test.net.sourceforge.pmd.testframework.ParserTst;
    6
    7   public class ASTInitializerTest extends ParserTst {
    8
    9       public void testDontCrashOnBlockStatement() throws Throwable {
    10          try {
    11              getNodes(ASTInitializer.class, TEST1);
    12          } catch (Exception e) {
    13              // FIXME
    14              // e.printStackTrace();
    15              //fail("Couldn't parse:\n" + TEST1);
    16          }
    17      }
    18
    19      private static final String TEST1 =
    20              "public class Foo {" + PMD.EOL +
    21              " {" + PMD.EOL +
    22              "   x = 5;" + PMD.EOL +
    23              " }" + PMD.EOL +
    24              "}";
    25
    26  }