public void testClassifier_05()
 {
     try {
         rootNode = getRootNode("package MyExample::package_1::package_1_1 context  Product inv: expression context Rental inv: exp context Film inv: exp context  Product inv: expression endpackage" +
                                " package java context Integer inv: expression endpackage", "testClassifier_05");
         oclSemanticAnalyzer.analyze(environment, rootNode);
     }
     catch (OCLSemanticException ex) {
         OCLWorkbenchToken token = ex.getNode().getToken();
         Console.WriteLine(token.getFilename() + ":" + token.getLine() + "[" + token.getColumn() + "]" + ex.Message);
         throw new AssertFailedException();
     }
     catch (Exception e) {
         Console.WriteLine(e.Message);
         throw new AssertFailedException();
     }
 }
Exemple #2
0
 public void doAction(OCLSemanticAnalyzer analyzer, EnvironmentImpl environment, CSTNode node)
 {
     analyzer.analyze(environment, node);
 }