Package com.google.gxp.compiler.codegen

Examples of com.google.gxp.compiler.codegen.IllegalNameError


    assertNoUnexpectedAlerts();
  }
 
  public void testNamedMsg_invalidName() throws Exception {
    compile("<gxp:msg name='assert'></gxp:msg>");
    assertAlert(new IllegalNameError(pos(2, 1), "Java", "assert"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


    for (Map.Entry<String, Collection<OutputLanguage>> illegalName :
             ILLEGAL_OUTPUT_LANGUAGE_NAMES.entrySet()) {
      compile(prefix + CharEscapers.xmlEscaper().escape(illegalName.getKey()) + suffix);
      SourcePosition errorPos = pos(2, 1);
      for (OutputLanguage outputLanguage : illegalName.getValue()) {
        assertAlert(new IllegalNameError(errorPos, outputLanguage.getDisplay(),
                                         illegalName.getKey()));
      }
      assertNoUnexpectedAlerts();
    }
  }
View Full Code Here

    for (Map.Entry<String, Collection<OutputLanguage>> illegalName :
             ILLEGAL_OUTPUT_LANGUAGE_NAMES.entrySet()) {
      compile(prefix + CharEscapers.xmlEscaper().escape(illegalName.getKey()) + suffix);
      SourcePosition errorPos = pos(2, 1);
      for (OutputLanguage outputLanguage : illegalName.getValue()) {
        assertAlert(new IllegalNameError(errorPos, outputLanguage.getDisplay(),
                                         illegalName.getKey()));
      }
      assertNoUnexpectedAlerts();
    }
  }
View Full Code Here

    assertNoUnexpectedAlerts();
  }
 
  public void testNamedMsg_invalidName() throws Exception {
    compile("<gxp:msg name='assert'></gxp:msg>");
    assertAlert(new IllegalNameError(pos(2, 1), "Java", "assert"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.codegen.IllegalNameError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.