Package hirondelle.web4j.webmaster

Examples of hirondelle.web4j.webmaster.PerformanceSnapshot


  public void testCtor(){
    assertState(fSnapshot, EXPOSURE_TIME.intValue(), 0, 0, 0, Consts.EMPTY_STRING);
  }

  public void testAddResponses() {
    PerformanceSnapshot snapshot1 = fSnapshot.addResponseTime(1000, URL);
    assertState(snapshot1, EXPOSURE_TIME.intValue(), 1, 1000, 1000, URL);
   
    PerformanceSnapshot snapshot2 = snapshot1.addResponseTime(3000, URL);
    assertState(snapshot2, EXPOSURE_TIME.intValue(), 2, 3000, 2000, URL);
   
    PerformanceSnapshot snapshot3 = snapshot2.addResponseTime(1000, URL);
    assertState(snapshot3, EXPOSURE_TIME.intValue(), 3, 3000, 1666, URL);
   
    PerformanceSnapshot snapshot4 = snapshot3.addResponseTime(6000, MAX_URL);
    assertState(snapshot4, EXPOSURE_TIME.intValue(), 4, 6000, 2749, MAX_URL);
  }
View Full Code Here


   each test, such that the tests will always start with the same
   set of test objects, and the execution of one test will not interfere
   with the execution of another.
  */
  protected void setUp(){
    fSnapshot = new PerformanceSnapshot(EXPOSURE_TIME);
  }
View Full Code Here

TOP

Related Classes of hirondelle.web4j.webmaster.PerformanceSnapshot

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.