blob: 6980f08c124b6808463b143704de79dac6f9e089 [file] [log] [blame]
/**
********************************************************************************
* 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.converters095.tests;
import java.io.File;
import java.util.Arrays;
import java.util.Collection;
import org.eclipse.app4mc.amalthea.converters.common.converter.NamespaceConverter;
import org.eclipse.app4mc.amalthea.converters095.impl.StimuliConverter;
import org.eclipse.app4mc.amalthea.converters095.impl.SwConverter;
import org.junit.BeforeClass;
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 StimuliConverterTest extends Abstract095ConverterTest {
static final String OUTPUT_FOLDER = "democar";
static final String OUTPUT_FOLDER_PREFIX = File.separator + OUTPUT_FOLDER + File.separator;
@BeforeClass
public static void setup() {
cleanOutputDirectory(OUTPUT_FOLDER);
}
@Parameterized.Parameters(name = "{index}: Test file: {0}")
public static Collection<Object[]> getTestData() {
return Arrays.asList(new Object[][] {
{ OUTPUT_FOLDER_PREFIX + "democar.amxmi", true },
{ "/stimuli/model.amxmi", true }
});
}
public StimuliConverterTest(final String xmlFileRelativeLocation, final boolean canExecuteTestCase) {
super(canExecuteTestCase, xmlFileRelativeLocation);
}
@Test
public void testConversion() {
super.testConversion(NamespaceConverter.class, SwConverter.class,StimuliConverter.class);
}
@Override
@Test
public void verification() {
super.verification();
}
}