@Test public void testForDatabaseUuid() throws Exception { final RV rv = new RV(); user.config.getDatabaseUuid_async( new AMD_IConfig_getDatabaseUuid() { public void ice_exception(Exception ex) { rv.ex = ex; } public void ice_response(String __ret) { rv.rv = __ret; } }, current("getDatabaseUuid")); rv.assertPassed(); assertNotNull(rv.rv); }
private void assertAddImage(ExporterI e, long id) throws Exception { final RV rv = new RV(); e.addImage_async( new AMD_Exporter_addImage() { public void ice_exception(Exception ex) { rv.ex = ex; } public void ice_response() { rv.rv = null; } }, id, null); rv.assertPassed(); }
private long assertGenerateTiff(ExporterI e) throws Exception { final RV rv = new RV(); e.generateTiff_async( new AMD_Exporter_generateTiff() { public void ice_exception(Exception ex) { rv.ex = ex; } public void ice_response(long val) { rv.rv = val; } }, null); rv.assertPassed(); return ((Long) rv.rv).longValue(); }
private byte[] assertRead(long pos, int size) throws Exception { final RV rv = new RV(); user_e.read_async( new AMD_Exporter_read() { public void ice_exception(Exception ex) { rv.ex = ex; } public void ice_response(byte[] buf) { rv.rv = buf; } }, pos, size, null); rv.assertPassed(); return (byte[]) rv.rv; }