Search in sources :

Example 6 with AppPluginAction

use of org.openecard.addon.bind.AppPluginAction in project open-ecard by ecsec.

the class CacheTest method removeSingle.

@Test
public void removeSingle() {
    AppPluginActionProxy proxy = new AppPluginActionProxy(null, null);
    AddonSpecification spec = new AddonSpecification();
    String id = "test";
    spec.setId(id);
    spec.setVersion("1.0.0");
    cache.addAppPluginAction(spec, id, proxy);
    // now get it back from the cache
    cache.removeCacheEntry(spec, id);
    AppPluginAction action = cache.getAppPluginAction(spec, id);
    Assert.assertNull(action);
}
Also used : AppPluginActionProxy(org.openecard.addon.bind.AppPluginActionProxy) AddonSpecification(org.openecard.addon.manifest.AddonSpecification) AppPluginAction(org.openecard.addon.bind.AppPluginAction) Test(org.testng.annotations.Test)

Aggregations

AppPluginAction (org.openecard.addon.bind.AppPluginAction)6 AppPluginActionProxy (org.openecard.addon.bind.AppPluginActionProxy)4 AddonSpecification (org.openecard.addon.manifest.AddonSpecification)3 Test (org.testng.annotations.Test)3 URI (java.net.URI)2 HashMap (java.util.HashMap)2 AddonNotFoundException (org.openecard.addon.AddonNotFoundException)2 BindingResult (org.openecard.addon.bind.BindingResult)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 AddonManager (org.openecard.addon.AddonManager)1 AddonSelector (org.openecard.addon.AddonSelector)1 AppExtensionAction (org.openecard.addon.bind.AppExtensionAction)1 AppExtensionActionProxy (org.openecard.addon.bind.AppExtensionActionProxy)1 Headers (org.openecard.addon.bind.Headers)1 RequestBody (org.openecard.addon.bind.RequestBody)1 IFDProtocolProxy (org.openecard.addon.ifd.IFDProtocolProxy)1 AppPluginSpecification (org.openecard.addon.manifest.AppPluginSpecification)1 SALProtocolProxy (org.openecard.addon.sal.SALProtocolProxy)1 HttpEntityEnclosingRequest (org.openecard.apache.http.HttpEntityEnclosingRequest)1 HttpResponse (org.openecard.apache.http.HttpResponse)1