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

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


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

  @Test
  public void simple200Shadow()
View Full Code Here


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

  @Test
  public void simple403()
View Full Code Here

      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("/archetype-catalog.xml", "/org/sonatype"));
    }
    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

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

  /**
   * Unsure is this a valid test case at all. Unsure when bucket root would respond with 404 at all? Empty bucket?
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.