/** * Copyright (c) 2012 Obeo. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Obeo - initial API and implementation */ package org.eclipse.emf.compare.tests.fragmentation.data; import java.io.IOException; import org.eclipse.emf.compare.tests.framework.AbstractInputData; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; // We'll use a resource set for these tests @SuppressWarnings("nls") public class FragmentationInputData extends AbstractInputData { public Resource getControlLeft() throws IOException { return loadFromClassLoader("control/left.nodes", new ResourceSetImpl()); } public Resource getControlOrigin() throws IOException { return loadFromClassLoader("control/origin.nodes", new ResourceSetImpl()); } public Resource getControlRight() throws IOException { return loadFromClassLoader("control/right.nodes", new ResourceSetImpl()); } public Resource getUncontrolLeft() throws IOException { return loadFromClassLoader("uncontrol/left.nodes", new ResourceSetImpl()); } public Resource getUncontrolOrigin() throws IOException { return loadFromClassLoader("uncontrol/origin.nodes", new ResourceSetImpl()); } public Resource getUncontrolRight() throws IOException { return loadFromClassLoader("uncontrol/right.nodes", new ResourceSetImpl()); } public Resource getControlLeftFolder() throws IOException { return loadFromClassLoader("control/left/left.nodes", new ResourceSetImpl()); } public Resource getControlOriginFolder() throws IOException { return loadFromClassLoader("control/origin/origin.nodes", new ResourceSetImpl()); } public Resource getControlRightFolder() throws IOException { return loadFromClassLoader("control/right/right.nodes", new ResourceSetImpl()); } public Resource getDeletedRootLeft() throws IOException { return loadFromClassLoader("deletedroot/left.nodes", new ResourceSetImpl()); } public Resource getDeletedRootOrigin() throws IOException { return loadFromClassLoader("deletedroot/origin.nodes", new ResourceSetImpl()); } public Resource getDeletedRootRight() throws IOException { return loadFromClassLoader("deletedroot/right.nodes", new ResourceSetImpl()); } public Resource getNewRootLeft() throws IOException { return loadFromClassLoader("newroot/left.nodes", new ResourceSetImpl()); } public Resource getNewRootOrigin() throws IOException { return loadFromClassLoader("newroot/origin.nodes", new ResourceSetImpl()); } public Resource getNewRootRight() throws IOException { return loadFromClassLoader("newroot/right.nodes", new ResourceSetImpl()); } public Resource getRootElementImplicationLeft() throws IOException { return loadFromClassLoader("rootelementimplication/left/origin.nodes", new ResourceSetImpl()); } public Resource getRootElementImplicationUncontrolOrigin() throws IOException { return loadFromClassLoader("rootelementimplication/ancestor/uncontrol/origin.nodes", new ResourceSetImpl()); } public Resource getRootElementImplicationControlOrigin() throws IOException { return loadFromClassLoader("rootelementimplication/ancestor/control/origin.nodes", new ResourceSetImpl()); } public Resource getRootElementImplicationRight() throws IOException { return loadFromClassLoader("rootelementimplication/right/origin.nodes", new ResourceSetImpl()); } }