Package com.google.gxp.compiler.alerts.common

Examples of com.google.gxp.compiler.alerts.common.InvalidNameError


    assertNoUnexpectedAlerts();

    // bad (other whitespace)
    compile("<gxp:import class='com.google.fo o.Bar'/>",
            "<gxp:import class='com.google.b az'/>");
    assertAlert(new InvalidNameError(pos(2,1), "com.google.fo o.Bar"));
    assertAlert(new InvalidNameError(pos(3,1), "com.google.b az"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


    assertNoUnexpectedAlerts();
  }

  public void testThrows_invalidClassName() throws Exception {
    compile("<gxp:throws exception='com.google.holy!cow' />");
    assertAlert(new InvalidNameError(pos(2,1), "com.google.holy!cow"));
    assertNoUnexpectedAlerts();

    compile("<gxp:throws exception='FoobarException' />");
    assertNoUnexpectedAlerts();
  }
View Full Code Here

* Tests of proper error reporting by the GXP compiler relating to calls.
*/
public class CallErrorTest extends BaseTestCase {
  public void testCall_invalidCallee() throws Exception {
    compile("<call:ham-and-eggs/>");
    assertAlert(new InvalidNameError(pos(2, 1), "ham-and-eggs"));
    assertNoUnexpectedAlerts();

    compile("<call:dots..dots/>");
    assertAlert(new InvalidNameError(pos(2, 1), "dots..dots"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.alerts.common.InvalidNameError

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.