blob: 33b1bb683e3895308c0be126a46233472acffeb9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 IBM Corporation 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:
* IBM Corporation - initial implementation and ideas
******************************************************************************/
package org.eclipse.equinox.p2.cudf.tests;
import java.io.File;
import java.io.FilenameFilter;
import junit.framework.*;
public class CheckAllFailingInstances extends TestCase {
public static Test suite() {
TestSuite suite = new TestSuite(CheckAllFailingInstances.class.getName());
File resourceDirectory = new File(CheckAllFailingInstances.class.getClassLoader().getResource("testData/instances/expectedFailure/").toString().substring("file:".length()));
File[] resources = resourceDirectory.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
if (name.startsWith("disabled-"))
return false;
return true;
}
});
for (int i = 0; i < resources.length; i++) {
suite.addTest(new CheckInstance(resources[i], false));
}
return suite;
}
}