Package org.codehaus.loom.extension

Examples of org.codehaus.loom.extension.Extension


    private OptionalPackage createPackage( final String vendor,
                                           final String specVersion,
                                           final String implVersion )
    {
        final Extension extension = new Extension( NAME,
                                                   specVersion, null,
                                                   implVersion, vendor, null,
                                                   null );
        final File file = new File( "." );
        final Extension[] available = new Extension[]{extension};
View Full Code Here


    }

    public void testCompatabilityRezultsIncompatability()
        throws Exception
    {
        final Extension extension1 =
            new Extension( "baz", null, null, null, null, null, null );
        final Extension extension2 =
            new Extension( "foo", null, null, null, null, null, null );
        assertEquals( Extension.INCOMPATIBLE,
                      extension1.getCompatibilityWith( extension2 ) );
    }
View Full Code Here

    }

    public void testCompatabilityRezultsNeedSpecUpgrade()
        throws Exception
    {
        final Extension extension1 =
            new Extension( "baz", "1.0", null, null, null, null, null );
        final Extension extension2 =
            new Extension( "baz", "1.1", null, null, null, null, null );
        assertEquals( Extension.REQUIRE_SPECIFICATION_UPGRADE,
                      extension1.getCompatibilityWith( extension2 ) );
    }
View Full Code Here

    }

    public void testCompatabilityRezultsCompatLowerVersion()
        throws Exception
    {
        final Extension extension1 =
            new Extension( "baz", "1.0", null, null, null, null, null );
        final Extension extension2 =
            new Extension( "baz", "0.9", null, null, null, null, null );
        assertEquals( Extension.COMPATIBLE,
                      extension1.getCompatibilityWith( extension2 ) );
    }
View Full Code Here

    }

    public void testCompatabilityRezultsCompatEqVersion()
        throws Exception
    {
        final Extension extension1 =
            new Extension( "baz", "1.0", null, null, null, null, null );
        final Extension extension2 =
            new Extension( "baz", "1.0", null, null, null, null, null );
        assertEquals( Extension.COMPATIBLE,
                      extension1.getCompatibilityWith( extension2 ) );
    }
View Full Code Here

    }

    public void testCompatabilityRezultsInCompatWIthNonNullSpecVersion()
        throws Exception
    {
        final Extension extension1 =
            new Extension( "baz", null, null, null, null, null, null );
        final Extension extension2 =
            new Extension( "baz", "1.0", null, null, null, null, null );
        assertEquals( Extension.REQUIRE_SPECIFICATION_UPGRADE,
                      extension1.getCompatibilityWith( extension2 ) );
    }
View Full Code Here

    }

    public void testCompatabilityRezultsInCompatWIthNullSpecVersion()
        throws Exception
    {
        final Extension extension1 =
            new Extension( "baz", "1.0", null, null, null, null, null );
        final Extension extension2 =
            new Extension( "baz", null, null, null, null, null, null );
        assertEquals( Extension.COMPATIBLE,
                      extension1.getCompatibilityWith( extension2 ) );
    }
View Full Code Here

    }

    public void testCompatabilityRezultsInCompatForVendorID()
        throws Exception
    {
        final Extension extension1 =
            new Extension( "baz", null, null, null, null, "Bob", null );
        final Extension extension2 =
            new Extension( "baz", null, null, null, null, "Bob", null );
        assertEquals( Extension.COMPATIBLE,
                      extension1.getCompatibilityWith( extension2 ) );
    }
View Full Code Here

    }

    public void testCompatabilityRezultsInCompatForNullVendorID()
        throws Exception
    {
        final Extension extension1 =
            new Extension( "baz", null, null, null, null, null, null );
        final Extension extension2 =
            new Extension( "baz", null, null, null, null, "Bob", null );
        assertEquals( Extension.REQUIRE_VENDOR_SWITCH,
                      extension1.getCompatibilityWith( extension2 ) );
    }
View Full Code Here

    }

    public void testCompatabilityRezultsInIncompatForNullVendorID()
        throws Exception
    {
        final Extension extension1 =
            new Extension( "baz", null, null, null, null, null, null );
        final Extension extension2 =
            new Extension( "baz", null, null, null, null, "Bob", null );
        assertEquals( Extension.REQUIRE_VENDOR_SWITCH,
                      extension1.getCompatibilityWith( extension2 ) );
    }
View Full Code Here

TOP

Related Classes of org.codehaus.loom.extension.Extension

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.