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

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


  public void testParam_notTemplateChild() throws Exception {
    compile("<html>",
            "<gxp:param name='foo' type='String' />",
            "</html>");
    assertAlert(new BadNodePlacementError(pos(3,1), "<gxp:param>",
                                          "inside <html>"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


  public void testThrows_nonEmpty() throws Exception {
    compile("<gxp:throws exception='com.google.foo.bar'>",
            "some text",
            "</gxp:throws>");
    assertAlert(new BadNodePlacementError(pos(2,44), "text",
                                          "inside <gxp:throws>"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testThrows_notTemplateChild() throws Exception {
    compile("<html>",
            "<gxp:throws exception='com.google.foo.bar' />",
            "</html>");
    assertAlert(new BadNodePlacementError(pos(3,1), "<gxp:throws>",
                                          "inside <html>"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testTypeParam_nonEmpty() throws Exception {
    compile("<gxp:typeparam name='T' extends='List'>",
            "some text",
            "</gxp:typeparam>");
    assertAlert(new BadNodePlacementError(pos(2,40), "text",
                                          "inside <gxp:typeparam>"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testTypeParam_notTemplateChild() throws Exception {
    compile("<html>",
            "<gxp:typeparam name='T' extends='List' />",
            "</html>");
    assertAlert(new BadNodePlacementError(pos(3,1), "<gxp:typeparam>",
                                          "inside <html>"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testCall_nonEmptyNonContainer() throws Exception {
    String startCall = "<my:" + getTemplateBaseName() + ">";
    String endCall = "</my:" + getTemplateBaseName() + ">";
    compile(startCall + "stuff inside" + endCall);
    SourcePosition errorPos = pos(2, endCall.length());
    assertAlert(new BadNodePlacementError(errorPos, "text",
                                          "inside " + startCall));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

        "callee", "<gxp:param content-type='text/html' name='x'/>");
    FileRef caller = createFile("caller",
                                "<call:callee>foo</call:callee>",
                                "<my:callee>foo</my:callee>");
    compileFiles(callee, caller);
    assertAlert(new BadNodePlacementError(pos(2, 14), "text",
                                          "inside <call:callee>"));
    assertAlert(new MissingAttributeError(pos(2, 1), "<call:callee>", "x"));
    assertAlert(new BadNodePlacementError(pos(3, 12), "text",
                                          "inside <my:callee>"));
    assertAlert(new MissingAttributeError(pos(3, 1), "<my:callee>", "x"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

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

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.