/*
* #%~
* The VDM Type Checker
* %%
* Copyright (C) 2008 - 2014 Overture
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #~%
*/
package org.overture.typechecker.tests;
import java.io.File;
import java.util.Collection;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.overture.ast.lex.Dialect;
import org.overture.typechecker.tests.framework.CommonTypeCheckerTest;
import org.overture.typechecker.tests.utils.TestSourceFinder;
@RunWith(value = Parameterized.class)
public class ModulesSlTypeCheckTest extends CommonTypeCheckerTest
{
public ModulesSlTypeCheckTest(Dialect dialect, String suiteName,
File testSuiteRoot, File file)
{
super(dialect, file, suiteName, testSuiteRoot);
}
@Parameters(name = "{1}")
public static Collection<Object[]> getData()
{
String name = "Type Check Modules TestSuite";
String root = "src\\test\\resources\\modules";
Collection<Object[]> tests = TestSourceFinder.createTestCompleteFile(Dialect.VDM_SL, name, root, "", "");
return tests;
}
@Override
protected String getPropertyId()
{
return "module.sl";
}
}