Saturday, May 9, 2009

Junit4OSGi Test

Task should be done this weekend !
write Junit4OSGi Bundle Test for DPWS SCM Module
http://felix.apache.org/site/apache-felix-ipojo-junit4osgi-tutorial.html
Implementation for virtual dimming system should be the next task after Junit4OSGi
Then the technique and conception documentation for consultant

The problem of Query

The problem in DPWSSpecification for property key.

When SAM calls the methods
getSpecification(Query query)
getSpecifications(Query query)

the null exception occurs into their own methods

public Specification createSpecification(String specification)

The error is in property key selection.

The problem in
public Set createSpecifications(String specification)

// Maybe have exception
ret.add(new DPWSSpecificationImpl(this,specification , this.context,sRs[0]));



The methods should be implemented

private Instance getInstanceByNameAndService(Specification spec, String name)
private Instance getInstanceByFilterAndService(Specification spec,String filter)
private Instance getInstanceByFilter(String filter)
private Instance getInstanceByNameAndImplementation(Implementation impl,String name)
private Instance getInstanceByFilterAndImplementation(Implementation impl,String filter)
private Set getInstancesByNameAndService(Specification spec,String name)
private Set getInstancesByFilterAndService(Specification spec,String filter)
private Set getInstancesByName(String name)
private Set getInstancesByFilter(String filter)
private Set getInstancesByNameAndImplementation(Implementation impl, String name)
private Set getInstancesByFilterAndImplementation(Implementation impl, String filter)

Blog Archive