Search in sources :

Example 11 with TestFrameworkProvider

use of org.eclipse.tycho.surefire.provider.spi.TestFrameworkProvider in project tycho by eclipse.

the class ProviderHelperTest method testSelectJunit3.

public void testSelectJunit3() throws Exception {
    TestFrameworkProvider provider = providerHelper.selectProvider(classPath("org.junit:3.8"), new Properties(), null);
    assertEquals(JUnit3Provider.class, provider.getClass());
}
Also used : TestFrameworkProvider(org.eclipse.tycho.surefire.provider.spi.TestFrameworkProvider) Properties(java.util.Properties)

Example 12 with TestFrameworkProvider

use of org.eclipse.tycho.surefire.provider.spi.TestFrameworkProvider in project tycho by eclipse.

the class ProviderHelperTest method testSelectJunit4WithJunit3Present.

public void testSelectJunit4WithJunit3Present() throws Exception {
    TestFrameworkProvider provider = providerHelper.selectProvider(classPath("org.junit:3.8.1", "org.junit:4.8.1"), new Properties(), null);
    assertEquals(JUnit4Provider.class, provider.getClass());
}
Also used : TestFrameworkProvider(org.eclipse.tycho.surefire.provider.spi.TestFrameworkProvider) Properties(java.util.Properties)

Aggregations

TestFrameworkProvider (org.eclipse.tycho.surefire.provider.spi.TestFrameworkProvider)12 Properties (java.util.Properties)9 MojoExecutionException (org.apache.maven.plugin.MojoExecutionException)4 File (java.io.File)2 Artifact (org.apache.maven.artifact.Artifact)2 Dependency (org.apache.maven.model.Dependency)2 IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 ArrayList (java.util.ArrayList)1 Arrays.asList (java.util.Arrays.asList)1 Collections.emptyList (java.util.Collections.emptyList)1 List (java.util.List)1 ArtifactResolutionException (org.apache.maven.artifact.resolver.ArtifactResolutionException)1 MojoFailureException (org.apache.maven.plugin.MojoFailureException)1 PlexusContainer (org.codehaus.plexus.PlexusContainer)1 BundleStartLevel (org.eclipse.sisu.equinox.launching.BundleStartLevel)1 DefaultEquinoxInstallationDescription (org.eclipse.sisu.equinox.launching.DefaultEquinoxInstallationDescription)1 EquinoxInstallationDescription (org.eclipse.sisu.equinox.launching.EquinoxInstallationDescription)1 ArtifactDescriptor (org.eclipse.tycho.ArtifactDescriptor)1 ArtifactKey (org.eclipse.tycho.ArtifactKey)1