Search in sources :

Example 6 with AppPluginActionProxy

use of org.openecard.addon.bind.AppPluginActionProxy 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

AppPluginActionProxy (org.openecard.addon.bind.AppPluginActionProxy)6 AddonSpecification (org.openecard.addon.manifest.AddonSpecification)5 Test (org.testng.annotations.Test)5 AppPluginAction (org.openecard.addon.bind.AppPluginAction)4 AppExtensionAction (org.openecard.addon.bind.AppExtensionAction)3 AppExtensionActionProxy (org.openecard.addon.bind.AppExtensionActionProxy)2 IFDProtocolProxy (org.openecard.addon.ifd.IFDProtocolProxy)2 SALProtocolProxy (org.openecard.addon.sal.SALProtocolProxy)2 AppPluginSpecification (org.openecard.addon.manifest.AppPluginSpecification)1