use of aQute.bnd.osgi.resource.FilterBuilder in project bnd by bndtools.
the class FilterBuilderTest method testVersionRange.
public void testVersionRange() {
assertEquals("(&(version>=1.0.0)(!(version>=2.0.0)))", fb.in("version", new VersionRange("[1,2)")).toString());
fb = new FilterBuilder();
assertEquals("(&(!(version<=1.0.0))(version<=2.0.0))", fb.in("version", new VersionRange("(1,2]")).toString());
}
use of aQute.bnd.osgi.resource.FilterBuilder in project bnd by bndtools.
the class FilterBuilderTest method testVersionRangeOSGi.
public void testVersionRangeOSGi() {
assertEquals("(&(version>=1.0.0)(!(version>=2.0.0)))", fb.in("version", new org.osgi.framework.VersionRange("[1,2)")).toString());
fb = new FilterBuilder();
assertEquals("(&(!(version<=1.0.0))(version<=2.0.0))", fb.in("version", new org.osgi.framework.VersionRange("(1,2]")).toString());
}
Aggregations