blob: 28d055481610ce9b0728df582d22cb88b2777b07 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 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.infrastructure;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.photran.internal.core.refactoring.infrastructure.Reindenter.Strategy;
public class ReindenterTestSuite extends TestSuite
{
public static Test suite() throws Exception
{
TestSuite suite = new TestSuite();
suite.addTest(getSuiteFor("01-simple.f90", Strategy.SHIFT_ENTIRE_BLOCK));
suite.addTest(getSuiteFor("02-end-after.f90", Strategy.SHIFT_ENTIRE_BLOCK));
suite.addTest(getSuiteFor("03-blank-after.f90", Strategy.SHIFT_ENTIRE_BLOCK));
suite.addTest(getSuiteFor("04-guess-indent.f90", Strategy.SHIFT_ENTIRE_BLOCK));
suite.addTest(getSuiteFor("05-eachline-test.f90", Strategy.REINDENT_EACH_LINE));
//suite.addTest(getSuiteFor("0.f90", Strategy));
return suite;
}
private static TestSuite getSuiteFor(String baseFilename, Strategy strategy)
{
TestSuite subSuite = new TestSuite("Reindenting " + baseFilename);
subSuite.addTest(new ReindenterTestCase(baseFilename, strategy));
return subSuite;
}
}