Class TychoPlexusTestCase

java.lang.Object
org.eclipse.tycho.testing.TychoPlexusTestCase

public class TychoPlexusTestCase extends Object
A wrapper around PlexusTestCase that allows usage in JUnit 4/5 as well as setting the classpath scanning for usage in "maven like" tests that only test plexus components.
  • Field Details

    • temporaryFolder

      public org.junit.rules.TemporaryFolder temporaryFolder
  • Constructor Details

    • TychoPlexusTestCase

      public TychoPlexusTestCase()
  • Method Details

    • tearDown

      public void tearDown() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • getContainer

      protected org.codehaus.plexus.PlexusContainer getContainer()
    • setUpServiceAndSession

      public void setUpServiceAndSession() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException, IOException
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
      IOException
    • getBasedir

      public static String getBasedir()
    • modifySession

      protected void modifySession(org.apache.maven.execution.MavenSession mavenSession)
    • lookup

      public final <T> T lookup(Class<T> role) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • lookup

      public final <T> T lookup(Class<T> role, String hint) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • lookupList

      public final <T> Collection<T> lookupList(Class<T> role) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • resourceFile

      public static File resourceFile(String path)
    • getBasedir

      protected static File getBasedir(String name) throws IOException
      Throws:
      IOException