/******************************************************************************* * Copyright (c) 2007, 2015 Borland Software Corporation and others. * * 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: * Borland Software Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.m2m.tests.qvt.oml.transform; import java.util.Collections; import org.eclipse.m2m.qvt.oml.ExecutionContext; public class FileToFileData extends FilesToFilesData { public FileToFileData(String name) { this(name, "in.ecore", "expected.ecore"); //$NON-NLS-1$//$NON-NLS-2$ } public FileToFileData(String name, String[][] props) { this(name, "in.ecore", "expected.ecore", props); //$NON-NLS-1$//$NON-NLS-2$ } public FileToFileData(String name, String fromFile, String expectedFile) { this(name, fromFile, expectedFile, new String[][] {}); } public FileToFileData(String name, String fromFile, String expectedFile, String[][] props) { this(name, fromFile, expectedFile, makeFileContext(props)); } public FileToFileData(String name, String fromFile, String expectedFile, ExecutionContext context) { super(name, Collections.singletonList(fromFile), Collections.singletonList(expectedFile), context); myFromFile = fromFile; myExpectedFile = expectedFile; } public String getFromFile() { return myFromFile; } public String getExpectedFile() { return myExpectedFile; } private final String myFromFile; private final String myExpectedFile; }