Package fitnesse.http

Examples of fitnesse.http.MockRequestBuilder


  @Test(expected=IllegalArgumentException.class) public void aSpecificationShouldBeWellFormed() {
    requestFrom("abc:/myCommand");
  }
   
  protected Request requestFrom(String commandSpecification) {
    return new MockRequestBuilder(commandSpecification).build();
  }
View Full Code Here


  public boolean isRunning() {
    return theService != null;
  }

  public void executeSingleCommand(String command, OutputStream out) throws Exception {
    Request request = new MockRequestBuilder(command).noChunk().build();
    FitNesseExpediter expediter = new FitNesseExpediter(new MockSocket(), context);
    Response response = expediter.createGoodResponse(request);
    response.withoutHttpHeaders();
    MockResponseSender sender = new MockResponseSender.OutputStreamSender(out);
    sender.doSending(response);
View Full Code Here

TOP

Related Classes of fitnesse.http.MockRequestBuilder

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.