use of org.apache.aries.unittest.mocks.Skeleton in project aries by apache.
the class RecursiveBundleTrackerTest method composite.
private CompositeBundle composite(String symbolicName, String version) {
CompositeBundle cb = Skeleton.newMock(CompositeBundle.class);
Skeleton cbSkel = Skeleton.getSkeleton(cb);
cbSkel.setReturnValue(new MethodCall(CompositeBundle.class, "getSymbolicName"), symbolicName);
cbSkel.setReturnValue(new MethodCall(CompositeBundle.class, "getVersion"), new Version(version));
return cb;
}
Aggregations