Package org.sonatype.tests.http.server.fluent

Examples of org.sonatype.tests.http.server.fluent.Server.stop()


      getScraper().scrape(context, page);
      assertThat(context.isStopped(), is(false));
      assertThat(context.isSuccessful(), is(false));
    }
    finally {
      server.stop();
    }
  }

  @Test
  public void simple404()
View Full Code Here


      getScraper().scrape(context, page);
      assertThat(context.isStopped(), is(false));
      assertThat(context.isSuccessful(), is(false));
    }
    finally {
      server.stop();
    }
  }

  @Test(expected = UnexpectedPageResponse.class)
  public void simple500()
View Full Code Here

      getScraper().scrape(context, page);
      assertThat(context.isStopped(), is(false));
      assertThat(context.isSuccessful(), is(false));
    }
    finally {
      server.stop();
    }
  }

  // == In-scrape-failure:
  // Scenario when _during_ scrape some subsequent page returns unexpected result.
View Full Code Here

      assertThat(entries, notNullValue());
      assertThat(entries.size(), equalTo(2));
      assertThat(entries, contains("/com/foo", "/com/bar"));
    }
    finally {
      server.stop();
    }
  }

  @Test
  public void inDive403()
View Full Code Here

      getScraper().scrape(context, page);
      assertThat(context.isStopped(), is(true));
      assertThat(context.isSuccessful(), is(false));
    }
    finally {
      server.stop();
    }
  }

  @Test
  public void inDive404()
View Full Code Here

      getScraper().scrape(context, page);
      assertThat(context.isStopped(), is(true));
      assertThat(context.isSuccessful(), is(false));
    }
    finally {
      server.stop();
    }
  }

  @Test
  public void inDive500()
View Full Code Here

      getScraper().scrape(context, page);
      assertThat(context.isStopped(), is(true));
      assertThat(context.isSuccessful(), is(false));
    }
    finally {
      server.stop();
    }
  }

}
View Full Code Here

      assertThat(entries, notNullValue());
      assertThat(entries.size(), equalTo(1));
      assertThat(entries, contains("/release/foo"));
    }
    finally {
      server.stop();
    }
  }

  @Test
  public void onePageHttp403()
View Full Code Here

      assertThat(entries, notNullValue());
      assertThat(entries.size(), equalTo(2));
      assertThat(entries, contains("/archetype-catalog.xml", "/org/sonatype"));
    }
    finally {
      server.stop();
    }
  }

  @Test
  public void simple200Proxy()
View Full Code Here

      assertThat(context.isStopped(), is(true));
      assertThat(context.isSuccessful(), is(false));
      assertThat(context.getMessage(), containsString("is a proxy"));
    }
    finally {
      server.stop();
    }
  }

  @Test
  public void simple200Group()
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.