| /** |
| ******************************************************************************** |
| * Copyright (c) 2015-2019 Robert Bosch GmbH and others. |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Robert Bosch GmbH - initial API and implementation |
| ******************************************************************************** |
| */ |
| |
| package org.eclipse.app4mc.amalthea.converters096.tests; |
| |
| import java.util.Arrays; |
| |
| import java.util.Collection; |
| |
| import org.eclipse.app4mc.amalthea.converters096.impl.ConstraintsConverter; |
| import org.eclipse.app4mc.amalthea.converters096.impl.NamespaceConverter; |
| import org.eclipse.app4mc.amalthea.converters096.impl.SwConverter; |
| import org.junit.FixMethodOrder; |
| import org.junit.Test; |
| import org.junit.runner.RunWith; |
| import org.junit.runners.MethodSorters; |
| import org.junit.runners.Parameterized; |
| |
| @FixMethodOrder(MethodSorters.NAME_ASCENDING) |
| @RunWith(Parameterized.class) |
| public class ConstraintsConverterTest extends AbstractConverterTest { |
| |
| |
| @Parameterized.Parameters(name = "{index}: Test file: {0}") |
| public static Collection<Object[]> getTestData() { |
| |
| return Arrays.asList(new Object[][] { |
| { "/eventchain/democar.amxmi", true } |
| }); |
| } |
| |
| public ConstraintsConverterTest(final String xmlFileRelativeLocation, final boolean canExecuteTestCase) { |
| |
| super(xmlFileRelativeLocation, canExecuteTestCase); |
| } |
| |
| @Test |
| public void testConversion() { |
| super.testConversion(NamespaceConverter.class, SwConverter.class, ConstraintsConverter.class); |
| } |
| |
| |
| @Override |
| @Test |
| public void verification() { |
| super.verification(); |
| } |
| |
| } |