Exemplo n.º 1
0
  /*
   * Simple end to end test (mostly for debug work)
   */
  public void testHelloOneWay() throws Exception {
    HandlerTracker tracker = HandlerTracker.getClientInstance();
    tracker.clearAll();

    TestService_Service service = getService();
    TestService test = getTestStub(service);
    ReportService report = getReportStub(service);

    report.clearHandlerTracker();

    test.testIntOneWay(0);

    // make normal call after
    assertEquals("did not get expected response", 4, test.testInt(4));

    System.out.println("ok");
  }
Exemplo n.º 2
0
  /*
   * Simple end to end test (mostly for debug work)
   */
  public void testHello() throws Exception {
    HandlerTracker tracker = HandlerTracker.getClientInstance();
    tracker.clearAll();

    TestService_Service service = getService();
    TestService test = getTestStub(service);
    ReportService report = getReportStub(service);

    report.clearHandlerTracker();

    int foo = -1;
    int bar = test.testInt(foo);
    assertTrue(foo == bar);
    System.out.println("ok");

    List<String> closedHandlers = report.getReport(TestConstants.REPORT_CLOSED_HANDLERS);

    List<String> handlers = report.getReport(TestConstants.REPORT_CALLED_HANDLERS);
    assertNotNull("received null list back from server", handlers);
  }