Example usage for org.apache.commons.httpclient.server SimpleHttpServer isRunning

List of usage examples for org.apache.commons.httpclient.server SimpleHttpServer isRunning

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.server SimpleHttpServer isRunning.

Prototype

public boolean isRunning() 

Source Link

Document

Checks if this HTTP server instance is running.

Usage

From source file:org.eclipse.ecf.tests.remoteservice.rest.service.RestServiceTest.java

public void testServerCreation() {
    assertNotNull(service);//from w w w.jav a  2 s.c o m
    SimpleHttpServer server = service.getServer();
    assertNotNull(server);
    assertTrue(server.isRunning());
}

From source file:org.eclipse.ecf.tests.remoteservice.rest.service.RestServiceTest.java

public void testStart() {
    SimpleHttpServer server = service.getServer();
    assertNotNull(server);
    service.run();
    assertTrue(server.isRunning());
}