Package org.apache.ace.discovery

Examples of org.apache.ace.discovery.Discovery


        TestUtils.configureObject(m_service, Identification.class, new Identification() {
            public String getID() {
                return "test";
            }
        });
        TestUtils.configureObject(m_service, Discovery.class, new Discovery() {
            public URL discover() {
                try {
                    return new URL("http://localhost/");
                }
                catch (MalformedURLException e) {
View Full Code Here


    @Test(groups = { UNIT })
    public void testUpdateWithLatestVersion() throws Exception {
        final URL[] urls=  prepareMockEnvironment(null, new Version[] {VERSION1, VERSION2, VERSION3}, VERSION3);

        TestUtils.configureObject(m_service, Discovery.class, new Discovery() {
            public URL discover() {
                return urls[1];
            }
        });
View Full Code Here

    @Test(groups = { UNIT })
    public void testUpdateWithNonLatestVersion() throws Exception {
        final URL[] urls=  prepareMockEnvironment(null, new Version[] {VERSION1, VERSION2, VERSION3}, VERSION2);

        TestUtils.configureObject(m_service, Discovery.class, new Discovery() {
            public URL discover() {
                return urls[1];
            }
        });
View Full Code Here

            throw new IllegalArgumentException("Missing a valid discovery value");
        }

        try {
            final URL url = new URL(urlStr);
            Discovery impl = new Discovery() {

                @Override
                public URL discover() {
                    return url;
                }
View Full Code Here

TOP

Related Classes of org.apache.ace.discovery.Discovery

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.