Search in sources :

Example 1 with Truncate

use of org.sonatype.goodies.httpfixture.server.jetty.behaviour.Truncate in project goodies by sonatype.

the class JettyServerProvider method addDefaultServices.

public void addDefaultServices() {
    addServlet("/error/*", new ErrorServlet());
    addBehaviour("/content/*", new Content());
    addBehaviour("/stutter/*", new Stutter());
    addBehaviour("/pause/*", new Pause(), new Content());
    addBehaviour("/truncate/*", new Truncate());
    addBehaviour("/timeout/*", new Pause());
    addBehaviour("/redirect/*", new Redirect(), new Content());
}
Also used : Pause(org.sonatype.goodies.httpfixture.server.jetty.behaviour.Pause) Content(org.sonatype.goodies.httpfixture.server.jetty.behaviour.Content) Truncate(org.sonatype.goodies.httpfixture.server.jetty.behaviour.Truncate) Redirect(org.sonatype.goodies.httpfixture.server.jetty.behaviour.Redirect) Stutter(org.sonatype.goodies.httpfixture.server.jetty.behaviour.Stutter)

Aggregations

Content (org.sonatype.goodies.httpfixture.server.jetty.behaviour.Content)1 Pause (org.sonatype.goodies.httpfixture.server.jetty.behaviour.Pause)1 Redirect (org.sonatype.goodies.httpfixture.server.jetty.behaviour.Redirect)1 Stutter (org.sonatype.goodies.httpfixture.server.jetty.behaviour.Stutter)1 Truncate (org.sonatype.goodies.httpfixture.server.jetty.behaviour.Truncate)1