Class JUnit47Provider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.osgi.framework.Version VERSION  
    • Constructor Summary

      Constructors 
      Constructor Description
      JUnit47Provider()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Set<java.lang.String> getJUnitBundleNames()  
      protected org.osgi.framework.VersionRange getJUnitVersionRange()  
      java.util.List<org.apache.maven.model.Dependency> getRequiredBundles()
      The list of OSGi bundles required by the test framework provider as maven artifacts.
      java.lang.String getSurefireProviderClassName()
      Fully qualified class name of the surefire provider (must implement contract http://maven.apache.org/plugins/maven-surefire-plugin/api.html ).
      org.osgi.framework.Version getVersion()
      The test framework version.
      private boolean hasGroups​(java.util.Properties providerProperties)  
      boolean isEnabled​(java.util.List<ClasspathEntry> testBundleClassPath, java.util.Properties surefireProperties)
      Whether this provider should be enabled for the given test bundle classpath and surefire properties.
      private boolean isParallelEnabled​(java.util.Properties providerProperties)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VERSION

        private static final org.osgi.framework.Version VERSION
    • Constructor Detail

      • JUnit47Provider

        public JUnit47Provider()
    • Method Detail

      • isEnabled

        public boolean isEnabled​(java.util.List<ClasspathEntry> testBundleClassPath,
                                 java.util.Properties surefireProperties)
        Description copied from interface: TestFrameworkProvider
        Whether this provider should be enabled for the given test bundle classpath and surefire properties.
        Specified by:
        isEnabled in interface TestFrameworkProvider
        Overrides:
        isEnabled in class AbstractJUnitProvider
        Parameters:
        testBundleClassPath - classpath of the test bundle
        surefireProperties - surefire provider properties
      • hasGroups

        private boolean hasGroups​(java.util.Properties providerProperties)
      • isParallelEnabled

        private boolean isParallelEnabled​(java.util.Properties providerProperties)
      • getSurefireProviderClassName

        public java.lang.String getSurefireProviderClassName()
        Description copied from interface: TestFrameworkProvider
        Fully qualified class name of the surefire provider (must implement contract http://maven.apache.org/plugins/maven-surefire-plugin/api.html ).
      • getVersion

        public org.osgi.framework.Version getVersion()
        Description copied from interface: TestFrameworkProvider
        The test framework version. If several providers of the same type are enabled, the one with the highest version wins.
      • getRequiredBundles

        public java.util.List<org.apache.maven.model.Dependency> getRequiredBundles()
        Description copied from interface: TestFrameworkProvider
        The list of OSGi bundles required by the test framework provider as maven artifacts. The groupId, artifactId and optionally version (if != null) will be matched against the plugin dependencies of tycho-surefire-plugin.