Package org.vfny.geoserver.control

Examples of org.vfny.geoserver.control.IStatusReport


                "statusReporter");
       
        List reports = controller.getStatusReports();
       
        for (int i = 0; i < reports.size(); i++) {
          IStatusReport report = (IStatusReport) reports.get(i);
          System.out.println("Module Name: " + report.getModuleName());
          System.out.println("Status: " +report.getStatus());
          System.out.println("Message: " + report.getMessage().getLocalizedMessage());
        }
    }
View Full Code Here


  protected void tearDown() throws Exception {
    super.tearDown();
  }

  public void testCheckStatus() throws Exception {
    IStatusReport good = goodChecker.checkStatus();
    assertEquals(good.getModuleName().toLowerCase(), "wfs");
    assertEquals(good.getStatus(), IStatusReport.OKAY);
   
    disableWFS();
   
    IStatusReport disabled = goodChecker.checkStatus();
    assertEquals(disabled.getStatus(), IStatusReport.ERROR);
    assertNotNull(disabled.getMessage());
   
    IStatusReport bad = badChecker.checkStatus();
    assertEquals(bad.getModuleName().toLowerCase(), "wfs");
    assertEquals(bad.getStatus(), IStatusReport.ERROR);
    assertNotNull(bad.getMessage());
  }
View Full Code Here

    super.tearDown();
  }

  public void testCheckStatus() {

    IStatusReport good = goodChecker.checkStatus();
    assertEquals(good.getModuleName().toLowerCase(), "data");
    assertEquals(good.getStatus(), IStatusReport.OKAY);
   
    IStatusReport bad = badChecker.checkStatus();
    assertEquals(bad.getModuleName().toLowerCase(), "data");
    assertEquals(bad.getStatus(), IStatusReport.ERROR);
    assertNotNull(bad.getMessage());
   
  }
View Full Code Here

  protected void tearDown() throws Exception {
    super.tearDown();
  }

  public void testCheckStatus() {
    IStatusReport good = goodChecker.checkStatus();
    assertEquals(good.getModuleName().toLowerCase(), "preferences");
    assertEquals(good.getStatus(), IStatusReport.OKAY);
   
    IStatusReport bad = badChecker.checkStatus();
    assertEquals(bad.getModuleName().toLowerCase(), "preferences");
    assertEquals(bad.getStatus(), IStatusReport.ERROR);
    assertNotNull(bad.getMessage());
  }
View Full Code Here

  protected void tearDown() throws Exception {
    super.tearDown();
  }
 
  public void testCheckStatus() throws Exception {
    IStatusReport good = goodChecker.checkStatus();
    assertEquals(good.getModuleName().toLowerCase(), "wms");
    assertEquals(good.getStatus(), IStatusReport.OKAY);
   
    disableWMS();
   
    IStatusReport disabled = goodChecker.checkStatus();
    assertEquals(disabled.getStatus(), IStatusReport.ERROR);
    assertNotNull(disabled.getMessage());
   
    IStatusReport bad = badChecker.checkStatus();
    assertEquals(bad.getModuleName().toLowerCase(), "wms");
    assertEquals(bad.getStatus(), IStatusReport.ERROR);
    assertNotNull(bad.getMessage());
  }
View Full Code Here

  public void testDefaultStatusReport() {
    String name = "name";
    int status = IStatusReport.OKAY;
    Exception message = new Exception();
   
    IStatusReport report = new DefaultStatusReport(name, status, message);
   
    assertEquals(name, report.getModuleName());
    assertEquals(status, report.getStatus());
    assertEquals(message, report.getMessage());
  }
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.control.IStatusReport

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.