Hi all,

I have a junis4osgi test plugin running and that one returns a NPE when
trying accessing the context.
I have made as explained in the tutorial junit4osgi: created a plugin
separate test alon with the bundle to test.
my config is that one:
______________________________
       <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Private-Package>services.osgi</Private-Package>
            <Bundle-SymbolicName>
              ${project.artifactId}
            </Bundle-SymbolicName>
            <Test-Suite>
              services.osgi.StructuralInformationServicesTest
            </Test-Suite>
          </instructions>
        </configuration>
      </plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-junit4osgi-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
<configuration>
<deployprojectartifact>false</deployprojectartifact>
</configuration>
</execution>
</executions>
</plugin>
____________________________________________________

Test reports that the iPOJO helper m_context is null ...?!

I think I havent configured well the test...

--
Pierre

Reply via email to