package org.muml.psm.allocation.algorithm.tests.qvto;

import java.util.Collections;
import java.util.Map;

import org.eclipse.emf.common.util.URI;

// all the good bits are taken from org.muml.uppaal.adapter.tests

// TODO: document me

public class QVToTransformationSingleOutExtentTest extends QVToTransformationTest {
	protected URI expectedURI;
	
	
	public QVToTransformationSingleOutExtentTest(Object expectedOutput, String transformationURI,
			Map<String, Object> configurationPropertyMap, Object... inParameters) {
		super(transformationURI, configurationPropertyMap,
				mergeParams(expectedOutput, inParameters));
	}
	
	public QVToTransformationSingleOutExtentTest(Object expectedOutput, String transformationURI,
			Object... inParameters) {
		super(transformationURI, Collections.<String, Object>emptyMap(),
				mergeParams(expectedOutput, inParameters));
	}
	
	public QVToTransformationSingleOutExtentTest(ExpectedTransformationStatus expTransformationStatus,
			Object expectedOutput, String transformationURI,
			Object... inParameters) {
		super(transformationURI, Collections.<String, Object>emptyMap(),
				expTransformationStatus, mergeParams(expectedOutput, inParameters));
	}
	
	private static Object[] mergeParams(Object expectedOutput, Object[] inParameters) {
		Object[] inParamsAndExpOut = new Object[inParameters.length + 1];
		System.arraycopy(inParameters, 0, inParamsAndExpOut, 0, inParameters.length);
		inParamsAndExpOut[inParameters.length] = expectedOutput;
		return inParamsAndExpOut;
	}
	
}

@@ -1042,38 +1042,78 @@
 Parameters) %7B%0A%09%09
-super(
+this(expTransformationStatus, expectedOutput, 
 transformationUR
@@ -1106,33 +1106,37 @@
 ansformationURI,
- 
+%0A%09%09%09%09
 Collections.%3CStr
@@ -1154,24 +1154,327 @@
 %3EemptyMap(),
+ inParameters);%0A%09%7D%0A%09%0A%09public QVToTransformationSingleOutExtentTest(ExpectedTransformationStatus expTransformationStatus,%0A%09%09%09Object expectedOutput, String transformationURI,%0A%09%09%09Map%3CString, Object%3E configurationPropertyMap,%0A%09%09%09Object... inParameters) %7B%0A%09%09super(transformationURI, configurationPropertyMap,
 %0A%09%09%09%09expTran
@@ -1531,24 +1531,25 @@
 rameters));%0A
+%09
 %09%7D%0A%09%0A%09privat

Add additional constructor to QVToTransformationSingleOutExtentTest