Examples of Alert


Examples of com.google.gxp.compiler.alerts.Alert

        + "  &foo;"
        + "  &bar;"
        + "</gxp:template>");

    Iterator<Alert> alerts = tree.getAlerts().iterator();
    Alert alert1 = alerts.next();
    assertEquals(
        "Resolved entity `//foo` to `/foo`", alert1.getMessage());
    Alert alert2 = alerts.next();
    assertFalse(alerts.hasNext());
    assertEquals(
        "Resolved entity `//bar` to `/bar`", alert2.getMessage());

    Node textElement = tree.getChildren().get(0).getChildren().get(0);
    assertEquals("  [file /foo]  [file /bar]",
                 ((TextElement) textElement).getText());
  }
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert

        + "  &baz;\n"
        + "  end\n"
        + "</gxp:template>");

    assertEquals(1, tree.getAlerts().size());
    Alert alert = Iterables.getOnlyElement(tree.getAlerts());
    assertEquals(SAXParseException.class.getName()
                 + ": The entity \"baz\" was referenced, but not declared.",
                 alert.getMessage());
    // TODO(laurence): Figure out why this is a SAXException and not an
    // UnresolvedEntityError.
    assertEquals("/com/google/gxp/compiler/parser/testUndeclaredEntityResolution.gxp:7:3:7:3",
                 alert.getSourcePosition().toString());
  }
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert

  public void testFailedMapping() throws Exception {
    AlertSetBuilder alertSetBuilder = new AlertSetBuilder();
    nsSet.get(alertSetBuilder, new SourcePosition("<test>"),
              "http://google.com/i/dont/exist");
    Alert alert = Iterables.getOnlyElement(alertSetBuilder.buildAndClear());
    assertTrue(alert instanceof UnknownNamespaceError);
  }
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert

    ReparentedTree output = reparent(input);
    assertTrue(output.getRoot() instanceof NullRoot);
  }

  public void testWithAlerts() throws Exception {
    Alert parseWarning = new WarningAlert(new SourcePosition("baz", 1, 2),
                                          "test warning"){};
    parseAlerts.add(parseWarning);
    expectedAlerts.add(parseWarning);

    ReparentedTree output = reparent(tree());
View Full Code Here

Examples of com.google.transit.realtime.GtfsRealtime.Alert

    }
  }

  private void handleAlerts(FeedMessage alerts) {
    for (FeedEntity entity : alerts.getEntityList()) {
      Alert alert = entity.getAlert();
      if (alert == null) {
        _log.warn("epxected a FeedEntity with an Alert");
        continue;
      }
View Full Code Here

Examples of com.seyren.core.domain.Alert

        return Response.status(Response.Status.NOT_FOUND).build();
      }
      check.setState(AlertType.ERROR);
      Subscription subscription = subscriptions.iterator().next();
      List<Alert> interestingAlerts = new ArrayList<Alert>();
      Alert alert = new Alert()
          .withTarget(check.getTarget())
          .withValue(BigDecimal.valueOf(0.0))
          .withWarn(check.getWarn())
          .withError(check.getError())
          .withFromType(AlertType.OK)
View Full Code Here

Examples of com.skymobi.monitor.model.Alert

    private Alert alert;

    @Override
    public void setUp() throws Exception {
        alertService.init();
        alert = new Alert();
        alert.setTitle("alert1");
        alert.setProjectName("project1");
    }
View Full Code Here

Examples of datasoul.datashow.Alert

                // Consistence check
                if (text.trim().length() == 0 ||
                        (showonmain == null && showonmonitor == null)){
                    output = this.getForm("Invalid Parameters");
                }else{
                    Alert obj = new Alert();
                    obj.setText(text);
                    obj.setTime(duration*1000);
                    obj.setShowOnMain(showonmain != null);
                    obj.setShowOnMonitor(showonmonitor != null);
                    obj.setMainTemplate(maintemplate);
                    obj.setMonitorTemplate(monitortemplate);
                    Alert.enqueue(obj);
                   
                    output = this.getForm("Alert sent");
                }
               
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.dialog.Alert

        if(referrer==null) {
            logger.info("History page requested without referer [" + getClientIpAddress() + "]");
            throw new RestartResponseException(HelpPage.class);
        }

        add(new Alert("newFeatureAlert", Model.of("Check out our <a href=\"/help\"><strong>New Features</strong></a> like <code>image upload</code> via clipboard or drag and drop, <code>keyboard shortcuts</code>, and more!")) {
            protected Component createMessage(final String markupId, final IModel<String> message) {
                return new Label(markupId, message).setEscapeModelStrings(false);
            }
        });
View Full Code Here

Examples of javax.microedition.lcdui.Alert

    //#endif
    return super.append(si);
  }
   
  public void run() {
    Alert about = HelpForm.getAbout(m_midlet);
    m_midlet.setCurrent( about, this );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.