Package org.thechiselgroup.choosel.core.client.visualization.model.initialization

Examples of org.thechiselgroup.choosel.core.client.visualization.model.initialization.TestSlotMappingInitializer


    public void resolversInitializedWhenVisualItemsAdded() {
        setUpSlots(DataType.TEXT);

        Map<Slot, VisualItemValueResolver> initialSlotMapping = new HashMap<Slot, VisualItemValueResolver>();
        initialSlotMapping.put(slots[0], resolver1);
        SlotMappingInitializer initializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        underTest = new DefaultManagedSlotMappingConfiguration(resolverProvider,
                initializer, visualizationModel, errorModel);
View Full Code Here


    public void resolversNotSetBeforeVisualItemsAdded() {
        setUpSlots(DataType.TEXT);

        Map<Slot, VisualItemValueResolver> initialSlotMapping = new HashMap<Slot, VisualItemValueResolver>();
        initialSlotMapping.put(slots[0], resolver1);
        SlotMappingInitializer initializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        underTest = new DefaultManagedSlotMappingConfiguration(resolverProvider,
                initializer, visualizationModel, errorModel);
View Full Code Here

                        DataType.NUMBER));
        initialSlotMapping.put(requiredSlots[0],
                new ManagedVisualItemValueResolverDecorator(resolverId1,
                        new FixedValueResolver(1, DataType.NUMBER)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        model.setResolver(requiredSlots[0], resolver);
View Full Code Here

        VisualItemValueResolver resolver = new ManagedVisualItemValueResolverDecorator(
                resolverId1, new FirstResourcePropertyResolver(property1,
                        DataType.NUMBER));
        initialSlotMapping.put(requiredSlots[0], resolver);

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        model.setContentResourceSet(new DefaultResourceSet());
View Full Code Here

        VisualItemValueResolver resolver = new ManagedVisualItemValueResolverDecorator(
                resolverId1, new FirstResourcePropertyResolver(property1,
                        DataType.NUMBER));
        initialSlotMapping.put(requiredSlots[0], resolver);

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource = createResource(1);
View Full Code Here

        initialSlotMapping.put(requiredSlots[0],
                new ManagedVisualItemValueResolverDecorator(resolverId1,
                        new FirstResourcePropertyResolver(property1,
                                DataType.NUMBER)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource = ResourceSetTestUtils.createResource(1);
View Full Code Here

        initialSlotMapping.put(requiredSlots[1],
                new ManagedVisualItemValueResolverDecorator(resolverId2,
                        new FirstResourcePropertyResolver(property2,
                                DataType.TEXT)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource1 = ResourceSetTestUtils.createResource(1);
View Full Code Here

        final Map<Slot, VisualItemValueResolver> initialSlotMapping = new HashMap<Slot, VisualItemValueResolver>();
        initialSlotMapping.put(requiredSlots[0],
                new ManagedVisualItemValueResolverDecorator(resolverId1,
                        new FixedValueResolver(1, DataType.NUMBER)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        /*
         * create the ViewModel, as well as initialize the
         * slotMappingConfiguration
 
View Full Code Here

        VisualItemValueResolver resolver = new ManagedVisualItemValueResolverDecorator(
                resolverId1, new FirstResourcePropertyResolver(property1,
                        DataType.NUMBER));
        initialSlotMapping.put(requiredSlots[0], resolver);

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource = createResource(1);
View Full Code Here

        VisualItemValueResolver resolver = new ManagedVisualItemValueResolverDecorator(
                resolverId1, new FirstResourcePropertyResolver(property1,
                        DataType.NUMBER));
        initialSlotMapping.put(requiredSlots[0], resolver);

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource = createResource(1);
View Full Code Here

TOP

Related Classes of org.thechiselgroup.choosel.core.client.visualization.model.initialization.TestSlotMappingInitializer

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.