Package org.sonatype.tests.http.server.jetty.behaviour.filesystem

Examples of org.sonatype.tests.http.server.jetty.behaviour.filesystem.Head


   * Creates a remote server delivering content from known places
   */
  protected void createRemoteServer(final String repoId) {
    final File repoRoot = testUtil.resolveFile("target/test-classes/" + repoId);
    checkArgument(repoRoot.isDirectory(), "Repository not exists: " + repoRoot.getAbsolutePath());
    server().serve("/" + repoId + "/*").withBehaviours(new Get(repoRoot.getAbsolutePath()), new Head(repoRoot.getAbsolutePath()));
  }
View Full Code Here

TOP

Related Classes of org.sonatype.tests.http.server.jetty.behaviour.filesystem.Head

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.