コード例 #1
0
  // not used
  protected void checkActionEffect(BasicEventResponse response, IEvent event, StateMachine sm) {
    Long utcOffset = (Long) response.getReturnData();

    // update the utc offset at client site
    Logger.debug("Retrieved offset = " + utcOffset);
    //    _timeServer.setUtcOffset(utcOffset);
  }
コード例 #2
0
  public void testImport() throws Exception {
    Log.log("TEST", "[DeleteGridDocumentActionTest.testDelete] Enter ");

    createTestData();
    _event = new DeleteGridDocumentEvent(_GDOC_UID);
    //    assertNotNull("event fileType UID is null", _event.getFileTypeUID());
    try {
      _response = performEvent(_event);
    } catch (Exception ex) {
      ex.printStackTrace();
      Log.err("TEST", "[DeleteGridDocumentActionTest.testDelete] Error Exit ", ex);
      assertTrue("Event Exception", false);
    }

    // check response
    assertNotNull("response is null", _response);
    assertTrue("event is not successful", _response.isEventSuccessful());
    assertEquals("Msg code incorrect", IErrorCode.NO_ERROR, _response.getMessageCode());

    Log.log("TEST", "[DeleteGridDocumentActionTest.testDelete] Exit ");
  }
  protected void checkActionEffect(BasicEventResponse response, IEvent event, StateMachine sm) {
    Object retData = response.getReturnData();
    assertNotNull("ReturnData is null", retData);
    assertTrue("ReturnData not instanceof Collection", retData instanceof EntityListResponseData);

    try {
      checkRegConnList((EntityListResponseData) retData, getRegConnInfoList());
    } catch (Throwable t) {
      Log.err("TEST", "GetRegistryConnectInfoListActionTest.checkActionEffect]", t);
      assertTrue("checkActionEffect fail", false);
    }
  }