public void handleResolveMediaByUri() throws Exception { Object object = unmarshal("/resolution/media-by-uri.xml", false); checkResultResolveMediaByUri(object); }
public void handleIncompleteCityByNameAndCountryMissing() throws Exception { Object object = unmarshal("/resolution/city-missing.xml", false); checkResultIncompleteCityByNameAndCountryMissing(object); }
public void handleResolveCategoryByName() throws Exception { Object object = unmarshal("/resolution/category-by-name.xml", false); checkResultResolveCategoryByName(object); }
public void handleResolveCityByNameAndCountry() throws Exception { Object object = unmarshal("/resolution/city-by-name.xml", false); checkResultResolveCityByNameAndCountry(object); }
public void handleIncompleteTypeMissing() throws Exception { Object object = unmarshal("/resolution/type-missing.xml", false); checkResultIncompleteTypeMissing(object); }
public void handleDetached() throws Exception { Object object = unmarshal("/resolution/detached.xml", false); checkResultDetached(object); }
public void handleRefUncompleteEvents() throws Exception { Object object = unmarshal("/resolution/ref-events.xml", false); checkResultRefUncompleteEvents(object); }
public void handleCircleA() throws Exception { Object object = unmarshal("/resolution/circle-a.xml", false); checkResultCircleA(object); }
public void handleFlat() throws Exception { Object object = unmarshal("/resolution/flat.xml", false); checkResultFlat(object); }
public void handleSelfReference() throws Exception { Object object = unmarshal("/resolution/self-reference.xml", false); checkResultSelfReference(object); }
public void handleRefLocations() throws Exception { Object object = unmarshal("/resolution/ref-locations.xml", false); checkResultRefLocations(object); }
public void handleRefEvents() throws Exception { Object object = unmarshal("/resolution/ref-events.xml", false); checkResultRefEvents(object); }
public void handleIncompleteFeatureMissing() throws Exception { Object object = unmarshal("/resolution/feature-missing.xml", false); checkResultIncompleteFeatureMissing(object); }
public void handleIncompleteCategoryByNameMissing() throws Exception { Object object = unmarshal("/resolution/category-missing.xml", false); checkResultIncompleteCategoryByNameMissing(object); }
public void handleIncompleteMediaByUriMissing() throws Exception { Object object = unmarshal("/resolution/media-missing.xml", false); checkResultIncompleteMediaByUriMissing(object); }
public void handleCircleB() throws Exception { Object[] objects = new Object[3]; objects[0] = unmarshal("/resolution/circle-b1.xml", true); objects[1] = unmarshal("/resolution/circle-b2.xml", true); Storage.getStage().reset(true); objects[2] = unmarshal("/resolution/circle-b1.xml", true); Storage.getStage().clear(true); checkResultCircleB(objects); }
@Override public Object unmarshal(String path, boolean pending) throws Exception { RecordingErrorHandler logger = new RecordingErrorHandler(missing, incomplete, errors, warnings, info, true); Storage.openStage(nodeRepository, nodeService, config, nodeHandler, null, logger); try { Object result = super.unmarshal(path, pending); handled.putAll(recordingNodeRepository.stored); return result; } finally { Storage.closeStage(); } }
@Override public void handleCircleB() { Object[] objects = new Object[3]; RecordingErrorHandler logger = new RecordingErrorHandler(missing, incomplete, errors, warnings, info, true); Storage.openStage(nodeRepository, nodeService, config, nodeHandler, null, logger); try { objects[0] = super.unmarshal("/resolution/circle-b1.xml", true); objects[1] = super.unmarshal("/resolution/circle-b2.xml", true); Storage.getStage().reset(true); objects[2] = super. unmarshal("/resolution/circle-b1.xml", true); Storage.getStage().clear(true); handled.putAll(recordingNodeRepository.stored); } catch (Exception e) { fail(e.toString()); } finally { Storage.closeStage(); } checkResultCircleB(objects); }