private boolean callgeo(TestConfig conf) throws Exception { // logger.debug(conf.toString()); ByteBuffer wa1 = ByteBuffer.wrap(conf.getInput().getBytes()); ByteBuffer wa2 = ByteBuffer.allocate(conf.getLengthOfWorkAreaTwo()); geoclient.callgeo(wa1, wa2); String wa1Result = decode(wa1); String wa2Result = decode(wa2); String rc = getReturnCode(wa1Result); String message = String.format( "Result of %s call: geosupportReturnCode = \"%s\"", conf.getFunctionName(), rc); boolean isSuccess = isSuccess(rc); String wa1Msg = String.format("WA1 of %s:", conf.getFunctionName()); String wa2Msg = String.format("WA2 of %s:", conf.getFunctionName()); if (isSuccess) { logger.debug(message); logger.debug(wa1Msg); logger.raw(Logger.LEVEL_DEBUG, wa1Result); logger.debug(wa2Msg); logger.raw(Logger.LEVEL_DEBUG, wa2Result); } else { logger.error(message); logger.error(wa1Msg); logger.raw(Logger.LEVEL_ERROR, wa1Result); logger.error(wa2Msg); logger.raw(Logger.LEVEL_ERROR, wa2Result); } return isSuccess; }