public ArtifactObject call() throws Exception {
return createBasicBundleObject("bundle1", "2", null);
}
}, false, ArtifactObject.TOPIC_ADDED, Artifact2FeatureAssociation.TOPIC_CHANGED, TOPIC_STATUS_CHANGED);
assertTrue("We added a new version of a bundle that is used by the target, so approval should be necessary.", sgo.needsApprove());
assertEquals("We expect the registration state to be Registered;", RegistrationState.Registered, sgo.getRegistrationState());
assertEquals("We expect the registration state to be Unapproved;", StoreState.Unapproved, sgo.getStoreState());
assertEquals("According to the shop, this target needs 1 bundle", 1, sgo.getArtifactsFromShop().length);
assertEquals("The shop should tell use we need bundle URL 'bundle1-2';", "http://bundle1-2", sgo.getArtifactsFromShop()[0].getURL());
assertEquals("According to the deployment, this target needs 1 bundle", 1, sgo.getArtifactsFromDeployment().length);