Package org.thechiselgroup.choosel.core.client.resources.persistence

Examples of org.thechiselgroup.choosel.core.client.resources.persistence.ResourceSetAccessor


                        resourceSets[delegateId]);
                resourceSets[resourceSetDTO.getId()] = resourceSet;
            }
        }

        ResourceSetAccessor accessor = new ResourceSetAccessor() {
            @Override
            public ResourceSet getResourceSet(int id) {
                assert id >= 0;
                return resourceSets[id];
            }
View Full Code Here


                        resourceSets[delegateId]);
                resourceSets[resourceSetDTO.getId()] = resourceSet;
            }
        }

        ResourceSetAccessor accessor = new ResourceSetAccessor() {
            @Override
            public ResourceSet getResourceSet(int id) {
                assert id >= 0;
                return resourceSets[id];
            }
View Full Code Here

        Memento state = new Memento();

        state.setValue(DefaultResourceModel.MEMENTO_AUTOMATIC_RESOURCES, 0);
        state.setValue(DefaultResourceModel.MEMENTO_RESOURCE_SET_COUNT, 0);

        ResourceSetAccessor accessor = mock(ResourceSetAccessor.class);
        when(accessor.getResourceSet(0)).thenReturn(ResourceSetTestUtils.createResources(1));
        when(accessor.getResourceSet(1)).thenReturn(ResourceSetTestUtils.createResources());

        underTest.restore(state, restorationManager, accessor);

        assertEquals(true, underTest.getResources().contains(ResourceSetTestUtils.createResource(1)));
    }
View Full Code Here

TOP

Related Classes of org.thechiselgroup.choosel.core.client.resources.persistence.ResourceSetAccessor

Copyright © 2018 www.massapicom. 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.