private void modifyRegConnInfo() {
    try {
      RegistryConnectInfo info =
          createConnectInfo(
              "TestConn2", "sample/url/publish", "sample/url/query", "testuser", "testpassword");

    } catch (Throwable e) {
      Log.err("TEST", "Error saving RegistryConnInfo", e);
      assertTrue("Error saving RegistryConnInfo", false);
    }
  }
  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);
    }
  }
  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 ");
  }
Esempio n. 4
0
 /**
  * @deprecated Use error(String,String,Throwable)
  * @param msg
  * @param ex
  */
 public static void err(String msg, Throwable ex) {
   Log.err(CATEGORY, msg, ex);
 }
Esempio n. 5
0
 /**
  * @deprecated Use error(String, Object)
  * @see Logger#error(String, Object)
  * @param msg
  */
 public static void err(Object msg) {
   Log.err(CATEGORY, msg);
 }
Esempio n. 6
0
 /**
  * @deprecated Use error(String, Object)
  * @see Logger#error(String, Object)
  * @param msg
  */
 public static void err(String msg) {
   Log.err(CATEGORY, msg);
 }
Esempio n. 7
0
 /**
  * @deprecated Use error(String, Object)
  * @see Logger#error(String, Object)
  * @param msg
  */
 public static void err(Throwable ex) {
   Log.err(CATEGORY, "", ex);
 }