Package org.apache.marmotta.commons.sesame.facading.collections.model

Examples of org.apache.marmotta.commons.sesame.facading.collections.model.CollectionFacade.addDate()


            CollectionFacade facade = facading.createFacade(uri, CollectionFacade.class);

            facade.setDates(Arrays.asList(a, b, c));
            Assert.assertThat(facade.getDates(), hasItems(a, b, c));

            facade.addDate(e);
            Assert.assertThat(facade.getDates(), hasItems(c, e, b, a));

            facade.setDates(Arrays.asList(a, d, now));
            Assert.assertThat(facade.getDates(), hasItems(a, d, now));
            Assert.assertThat(facade.getDates(), CoreMatchers.not(hasItems(c, e, b)));
View Full Code Here


            CollectionFacade facade = facading.createFacade(uri, CollectionFacade.class);

            facade.setDates(Arrays.asList(a, b, c));
            Assert.assertThat(facade.getDates(), hasItems(a, b, c));

            facade.addDate(e);
            Assert.assertThat(facade.getDates(), hasItems(c, e, b, a));

            facade.setDates(Arrays.asList(a, d, now));
            Assert.assertThat(facade.getDates(), hasItems(a, d, now));
            Assert.assertThat(facade.getDates(), CoreMatchers.not(hasItems(c, e, b)));
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.