Package org.apache.sling.discovery.impl.common

Examples of org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl


            fail("should complain");
        } catch (IllegalArgumentException iae) {
            // ok
        }

        final DefaultInstanceDescriptionImpl id = TopologyTestHelper
                .createAndAddInstanceDescription(newView, newView
                        .getClusterViews().iterator().next());
        TopologyTestHelper.createAndAddInstanceDescription(newView, newView
                .getClusterViews().iterator().next());
        assertEquals(4, newView.findInstances(new InstanceFilter() {

            public boolean accept(InstanceDescription instance) {
                return true;
            }
        }).size());
        assertEquals(1, newView.findInstances(new InstanceFilter() {

            public boolean accept(InstanceDescription instance) {
                return instance.getSlingId().equals(id.getSlingId());
            }
        }).size());
        assertEquals(1, newView.findInstances(new InstanceFilter() {

            public boolean accept(InstanceDescription instance) {
View Full Code Here

TOP

Related Classes of org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl

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.