Examples of deleted()


Examples of org.jclouds.openstack.swift.v1.domain.BulkDeleteResponse.deleted()

   public void notPresentWhenDeleting() throws Exception {
      for (String regionId : regions) {
         BulkDeleteResponse deleteResponse = api.bulkApiInRegion(regionId).bulkDelete(
               ImmutableList.of(UUID.randomUUID().toString()));
         assertEquals(deleteResponse.deleted(), 0);
         assertEquals(deleteResponse.notFound(), 1);
         assertTrue(deleteResponse.errors().isEmpty());
      }
   }
View Full Code Here

Examples of org.jclouds.openstack.swift.v1.domain.BulkDeleteResponse.deleted()

   @Test(dependsOnMethods = "extractArchive")
   public void bulkDelete() throws Exception {
      for (String regionId : regions) {
         BulkDeleteResponse deleteResponse = api.bulkApiInRegion(regionId).bulkDelete(paths);
         assertEquals(deleteResponse.deleted(), OBJECT_COUNT);
         assertEquals(deleteResponse.notFound(), 0);
         assertTrue(deleteResponse.errors().isEmpty());
         assertEquals(api.containerApiInRegion(regionId).get(containerName).objectCount(), 0);
      }
   }
View Full Code Here

Examples of org.jclouds.openstack.swift.v1.domain.BulkDeleteResponse.deleted()

   public void notPresentWhenDeleting() throws Exception {
      for (String regionId : api.configuredRegions()) {
         BulkDeleteResponse deleteResponse = api.bulkApiInRegion(regionId).bulkDelete(
               ImmutableList.of(UUID.randomUUID().toString()));
         assertEquals(deleteResponse.deleted(), 0);
         assertEquals(deleteResponse.notFound(), 1);
         assertTrue(deleteResponse.errors().isEmpty());
      }
   }
View Full Code Here

Examples of org.jclouds.openstack.swift.v1.domain.BulkDeleteResponse.deleted()

   @Test(dependsOnMethods = "extractArchive")
   public void bulkDelete() throws Exception {
      for (String regionId : api.configuredRegions()) {
         BulkDeleteResponse deleteResponse = api.bulkApiInRegion(regionId).bulkDelete(paths);
         assertEquals(deleteResponse.deleted(), OBJECT_COUNT);
         assertEquals(deleteResponse.notFound(), 0);
         assertTrue(deleteResponse.errors().isEmpty());
         assertEquals(api.containerApiInRegion(regionId).get(containerName).objectCount(), 0);
      }
   }
View Full Code Here

Examples of org.openengsb.core.api.model.QueryRequest.deleted()

        QueryRequest request = QueryRequest.create();
        List<EDBObject> result = db.query(request);
        assertThat(result.size(), is(0));

        result = db.query(request.deleted());
        assertThat(result.size(), is(1));
    }
}
View Full Code Here

Examples of org.osgi.service.cm.ManagedServiceFactory.deleted()

   
    try {
      f.updated("ok2", p);
      ServiceReference ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "ok2");
      assertNotNull("Check instance creation", ref);
      f.deleted("ok2");
      ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "ok2");
      assertNull("Check instance deletion", ref);
    } catch (ConfigurationException e) {
      fail("An acceptable configuration is rejected : " + e.getMessage());
    }
View Full Code Here

Examples of org.osgi.service.cm.ManagedServiceFactory.deleted()

       
        try {
            f.updated("ok2", p);
            ServiceReference ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "ok2");
            assertNotNull("Check instance creation", ref);
            f.deleted("ok2");
            ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "ok2");
            assertNull("Check instance deletion", ref);
        } catch (ConfigurationException e) {
            fail("An acceptable configuration is rejected : " + e.getMessage());
        }
View Full Code Here

Examples of org.osgi.service.cm.ManagedServiceFactory.deleted()

      p.put("int", new Integer("4"));
      f.updated("okkkk", p);
      ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "okkkk");
      Integer test = (Integer) ref.getProperty("int");
      assertEquals("Check instance modification", 4, test.intValue());
      f.deleted("okkkk");
      ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "okkkk");
      assertNull("Check instance deletion", ref);
    } catch (ConfigurationException e) {
      fail("An acceptable configuration is rejected : " + e.getMessage());
    }
View Full Code Here

Examples of org.osgi.service.cm.ManagedServiceFactory.deleted()

        p.put("int", new Integer("4"));
        f.updated("okkkk", p);
        ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "okkkk");
        Integer test = (Integer) ref.getProperty("int");
        assertEquals("Check instance modification", 4, test.intValue());
        f.deleted("okkkk");
        ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "okkkk");
        assertNull("Check instance deletion", ref);
      } catch (ConfigurationException e) {
        fail("An acceptable configuration is rejected : " + e.getMessage());
      }
View Full Code Here

Examples of org.osgi.service.cm.ManagedServiceFactory.deleted()

                    return;
                }


                try {
                    factory.deleted(pid);
                } catch (Throwable throwable) {
                    log.log(reference, LogService.LOG_ERROR,
                            "deleted(" + pid + ") method failed:",
                            throwable);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.