blob: 4f52c51cc254d080384790796456ce55e3f90a3f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013, 2018 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* E.D.Willink - Initial API and implementation
*******************************************************************************/
package org.eclipse.ocl.examples.consumers.tests;
import java.util.Arrays;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
/**
* Tests the Consumer support.
*/
@SuppressWarnings("nls")
public class AllConsumerTests extends TestCase
{
public AllConsumerTests() {
super("");
}
public static Test suite() {
// if (System.getProperty("standalone") != null) {
// running tests stand-alone: must set up the environment registry
// Environment.Registry.INSTANCE.registerEnvironment(
// EcoreEnvironmentFactory.INSTANCE.createEnvironment());
// }
String testSuiteName = System.getProperty("testSuiteName", "Consumer Support");
TestSuite result = new TestSuite(testSuiteName);
result.addTestSuite(ConsumerProjectMapTest.class);
result.addTestSuite(ConsumerValidateTests.class);
result.addTestSuite(ConsumerLoadTests.class);
return result;
}
public Object run(Object args)
throws Exception {
TestRunner.run(suite());
return Arrays
.asList(new String[] {"Please see raw test suite output for details."});
}
}