Examples of UnmodifiableResourceSet


Examples of org.thechiselgroup.choosel.core.client.resources.UnmodifiableResourceSet

        }
        // 2. restore unmodifiable resource sets
        for (ResourceSetDTO resourceSetDTO : resourceSetDTOs) {
            if (resourceSetDTO.isUnmodifiable()) {
                int delegateId = resourceSetDTO.getDelegateSetId();
                ResourceSet resourceSet = new UnmodifiableResourceSet(
                        resourceSets[delegateId]);
                resourceSets[resourceSetDTO.getId()] = resourceSet;
            }
        }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.resources.UnmodifiableResourceSet

    public void saveAndRestoreUnmodifiableSet() {
        // use string buffer so its modifiable
        final StringBuffer id = new StringBuffer();

        ResourceSet delegate = createResources(1, 2);
        final ResourceSet unmodifiableSet = new UnmodifiableResourceSet(
                delegate);

        when(windowContent.save(any(ResourceSetCollector.class))).thenAnswer(
                new Answer<Memento>() {
                    @Override
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.resources.UnmodifiableResourceSet

        }
        // 2. restore unmodifiable resource sets
        for (ResourceSetDTO resourceSetDTO : resourceSetDTOs) {
            if (resourceSetDTO.isUnmodifiable()) {
                int delegateId = resourceSetDTO.getDelegateSetId();
                ResourceSet resourceSet = new UnmodifiableResourceSet(
                        resourceSets[delegateId]);
                resourceSets[resourceSetDTO.getId()] = resourceSet;
            }
        }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.resources.UnmodifiableResourceSet

    }

    @Test
    public void highlightIfUnmodifiableWrapperGetsHighlighted() {
        ResourceSet wrappedSet = ResourceSetTestUtils.createResources(1);
        UnmodifiableResourceSet unmodifiableWrapper = new UnmodifiableResourceSet(
                wrappedSet);

        when(avatar.getResourceSet()).thenReturn(wrappedSet);

        underTest.createAvatar(wrappedSet);
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.resources.UnmodifiableResourceSet

    }

    @Test
    public void highlightUnmodifiableWrapperIfOtherUnmodifiableWrapperGetsHighlighted() {
        ResourceSet wrappedSet = ResourceSetTestUtils.createResources(1);
        UnmodifiableResourceSet unmodifiableWrapper1 = new UnmodifiableResourceSet(
                wrappedSet);
        UnmodifiableResourceSet unmodifiableWrapper2 = new UnmodifiableResourceSet(
                wrappedSet);

        when(avatar.getResourceSet()).thenReturn(unmodifiableWrapper1);

        underTest.createAvatar(unmodifiableWrapper1);
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.resources.UnmodifiableResourceSet

    }

    @Test
    public void highlightUnmodifiableWrappersIfWrappedSetGetsHighlighted() {
        ResourceSet wrappedSet = ResourceSetTestUtils.createResources(1);
        UnmodifiableResourceSet unmodifiableWrapper = new UnmodifiableResourceSet(
                wrappedSet);

        when(avatar.getResourceSet()).thenReturn(unmodifiableWrapper);

        underTest.createAvatar(unmodifiableWrapper);
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.