blob: cfe1ee453f2847d15b54cc98e6822ab26f80af38 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 University of Illinois at Urbana-Champaign and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* UIUC - Initial API and implementation
*******************************************************************************/
package org.eclipse.photran.internal.tests.refactoring;
import junit.framework.Test;
import org.eclipse.core.resources.IFile;
import org.eclipse.photran.internal.core.refactoring.RemoveArithmeticIfRefactoring;
import org.eclipse.photran.internal.tests.Activator;
import org.eclipse.photran.internal.tests.PhotranRefactoringTestSuiteFromMarkers;
/**
* Unit tests for the Remove Arithmetic If Statement refactoring.
*
* @author Matthew Fotzler
* @author Jeff Overbey - added {@link #shouldCompile(IFile)}
*/
public class RemoveArithmeticIfTestSuite
extends PhotranRefactoringTestSuiteFromMarkers<RemoveArithmeticIfRefactoring>
{
private static final String DIR = "refactoring-test-code/remove-arithmetic-if-stmt";
public static Test suite() throws Exception
{
return new RemoveArithmeticIfTestSuite();
}
public RemoveArithmeticIfTestSuite() throws Exception
{
super(Activator.getDefault(),
"Running Remove Arithmetic If Statements Refactoring in",
DIR,
RemoveArithmeticIfRefactoring.class);
}
@Override protected boolean shouldCompile(IFile fileContainingMarker)
{
return !fileContainingMarker.getName().equalsIgnoreCase("bug335794.f90");
}
}