Package org.apache.etch.examples.perf.Perf

Examples of org.apache.etch.examples.perf.Perf.Point


       
        final int X = 1000000000;
        final int Y = 2000000000;

        while (n-- > 0)
          server.dist( new Point( 1, 2 ), new Point( X, Y ) );

        stopServer( server );
      }
    }.run();
  }
View Full Code Here


    server.report( 18, "starting" );

    server.report( 19, "stopping" );

    Point r = server.dist( new Point( 1, 2 ), new Point( 3, 5 ) );
    Assertion.check( r.x == 2, "r.x == 2" );
    Assertion.check( r.y == 3, "r.y == 3" );

    r = server.dist( new Point( 10, 9 ), new Point( 4, 5 ) );
    Assertion.check( r.x == -6, "r.x == -6" );
    Assertion.check( r.y == -4, "r.y == -4" );

    Date t0 = new Date();
    long adj = 3600000L;
View Full Code Here

   * @throws Exception
   */
  @Test
  public void testDistance() throws Exception
  {
    Point a = new Point(2,3);
    Point b = new Point(4,5);
    Point result = server.dist( a, b );
    Assert.assertEquals( 2, result.getX().intValue() );
    Assert.assertEquals( 2, result.getY().intValue() );
   
  }
View Full Code Here

TOP

Related Classes of org.apache.etch.examples.perf.Perf.Point

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.