blob: d52fe52cb90732cfdad713a69331237191905759 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014-2016 Akos Horvath, Abel Hegedus, Tamas Borbas, Marton Bur, Zoltan Ujhelyi, Robert Doczi, Daniel Segesdi, Peter Lunk, IncQuery Labs Ltd.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-v20.html.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.viatra.examples.cps.xform.m2m.tests
import org.apache.log4j.Logger
import org.eclipse.viatra.examples.cps.generator.utils.CPSModelBuilderUtil
import org.eclipse.viatra.examples.cps.tests.util.CPSTestBase
import org.eclipse.viatra.examples.cps.xform.m2m.launcher.CPSTransformationWrapper
import org.junit.After
class CPS2DepTestWithoutParameters extends CPSTestBase {
protected extension Logger logger = Logger.getLogger("cps.xform.CPS2DepTest")
protected extension CPSTransformationWrapper xform
protected extension CPSModelBuilderUtil modelBuilder
String wrapperType
new(CPSTransformationWrapper wrapper, String wrapperType){
xform = wrapper
modelBuilder = new CPSModelBuilderUtil
this.wrapperType = wrapperType
}
def startTest(String testId){
info('''START TEST: type: «wrapperType» ID: «testId»''')
}
def endTest(String testId){
info('''END TEST: type: «wrapperType» ID: «testId»''')
}
@After
def cleanup() {
cleanupTransformation;
(0..4).forEach[Runtime.getRuntime().gc()]
}
}