Package org.apache.sling.cassandra.resource.provider

Examples of org.apache.sling.cassandra.resource.provider.CassandraResourceProvider.revert()


            map1.put("resourceSuperType", "nt:supercass1");

            CassandraResourceResolver resolver =  new CassandraResourceResolver();
            cassandraResourceProvider.create(resolver,path1,map1);
            Assert.assertNull("Before Commiting resource should be null", cassandraResourceProvider.getResource(resolver, path1));
            cassandraResourceProvider.revert(resolver);
            Assert.assertNull("Reverted resource should be null", cassandraResourceProvider.getResource(resolver, path1));

        } catch (Exception e) {
            LOGGER.info("Ignore err" + e.getMessage());
            Assert.fail("Failed to add data to cassandra");
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.