1 /***************************************************************************************
2 * Copyright (c) Jonas Bon?r, Alexandre Vasseur. All rights reserved. *
3 * http://aspectwerkz.codehaus.org *
4 * ---------------------------------------------------------------------------------- *
5 * The software in this package is published under the terms of the LGPL license *
6 * a copy of which has been included with this distribution in the license.txt file. *
7 **************************************************************************************/
8 package test;
9
10 import junit.framework.TestCase;
11 import test.expression.ExpressionTest;
12 import org.codehaus.aspectwerkz.expression.DumpVisitor;
13 import org.codehaus.aspectwerkz.expression.ast.ASTRoot;
14 import org.codehaus.aspectwerkz.expression.ast.ExpressionParser;
15
16 import java.io.StringReader;
17
18 /***
19 * @author <a href="mailto:alex@gnilux.com">Alexandre Vasseur</a>
20 */
21 public class TypedExpressionTest extends TestCase {
22
23 private static final ExpressionParser s_parser = new ExpressionParser(System.in);
24
25
26 public TypedExpressionTest(String name) {
27 super(name);
28 }
29
30 public void testGrammar() throws Throwable {
31
32 s_parser.parse(
33
34 "dummy(s) OR not(dummy2)"
35 ).dump(" ");
36
37 }
38
39
40
41 public static void main(String[] args) {
42 junit.textui.TestRunner.run(suite());
43 }
44
45 public static junit.framework.Test suite() {
46 return new junit.framework.TestSuite(TypedExpressionTest.class);
47 }
48
49
50
51 }