Examples of VendorInfoMatchPolicy


Examples of npanday.vendor.VendorInfoMatchPolicy

     * @param vendorName the name of the vendor to match
     * @return a match policy for a vendor name
     */
    VendorInfoMatchPolicy createVendorNamePolicy( final String vendorName )
    {
        return new VendorInfoMatchPolicy()
        {
            public boolean match( VendorInfo vendorInfo )
            {
                if ( vendorInfo == null )
                {
View Full Code Here

Examples of npanday.vendor.VendorInfoMatchPolicy

     * @param vendorVersion the vendor version to match
     * @return a match policy for a vendor version
     */
    VendorInfoMatchPolicy createVendorVersionPolicy( final String vendorVersion )
    {
        return new VendorInfoMatchPolicy()
        {
            public boolean match( VendorInfo vendorInfo )
            {
                if ( vendorInfo == null )
                {
View Full Code Here

Examples of npanday.vendor.VendorInfoMatchPolicy

     * @param frameworkVersion the .NET framework version to use for matching vendor info objects
     * @return a match policy for the .NET framework version
     */
    VendorInfoMatchPolicy createFrameworkVersionPolicy( final String frameworkVersion )
    {
        return new VendorInfoMatchPolicy()
        {
            public boolean match( VendorInfo vendorInfo )
            {
                if ( vendorInfo == null )
                {
View Full Code Here

Examples of npanday.vendor.VendorInfoMatchPolicy

     *
     * @return a vendor info match policy for matching whether a vendor info is a default entry
     */
    VendorInfoMatchPolicy createVendorIsDefaultPolicy()
    {
        return new VendorInfoMatchPolicy()
        {
            public boolean match( VendorInfo vendorInfo )
            {
                if ( vendorInfo == null )
                {
View Full Code Here

Examples of npanday.vendor.VendorInfoMatchPolicy

        matchPolicyFactory.init( logger );
    }

    public void testCreateVendorNamePolicy()
    {
        VendorInfoMatchPolicy matchPolicy = matchPolicyFactory.createVendorNamePolicy( "MICROSOFT" );
        assertTrue( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MICROSOFT, "", "" ) ) );
        assertFalse( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "", "" ) ) );
    }
View Full Code Here

Examples of npanday.vendor.VendorInfoMatchPolicy

        assertFalse( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "", "" ) ) );
    }

    public void testCreateVendorVersionPolicy()
    {
        VendorInfoMatchPolicy matchPolicy = matchPolicyFactory.createVendorVersionPolicy( "1.1.18" );
        assertTrue( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "1.1.18", "" ) ) );
        assertFalse( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "2.1.18", "" ) ) );
    }
View Full Code Here

Examples of npanday.vendor.VendorInfoMatchPolicy

        assertFalse( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "2.1.18", "" ) ) );
    }

    public void testCreateFrameworkVersionPolicy()
    {
        VendorInfoMatchPolicy matchPolicy = matchPolicyFactory.createFrameworkVersionPolicy( "2.0.50727" );
        assertTrue( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "", "2.0.50727" ) ) );
        assertFalse( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "", "1.1.4322" ) ) );
    }
View Full Code Here

Examples of npanday.vendor.VendorInfoMatchPolicy

        assertFalse( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "", "1.1.4322" ) ) );
    }

    public void testCreateFrameworkVersionPolicy_WithNullValue()
    {
        VendorInfoMatchPolicy matchPolicy = matchPolicyFactory.createFrameworkVersionPolicy( "2.0.50727" );
        assertFalse( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "", null ) ) );
    }
View Full Code Here

Examples of npanday.vendor.VendorInfoMatchPolicy

        assertFalse( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "", null ) ) );
    }

    public void testCreateIsDefaultPolicy_WithNullVendorInfo()
    {
        VendorInfoMatchPolicy matchPolicy = matchPolicyFactory.createVendorIsDefaultPolicy();
        assertFalse( matchPolicy.match( null ) );
    }
View Full Code Here

Examples of npanday.vendor.VendorInfoMatchPolicy

        assertFalse( matchPolicy.match( null ) );
    }

    public void testCreateIsDefaultPolicy_False()
    {
        VendorInfoMatchPolicy matchPolicy = matchPolicyFactory.createVendorIsDefaultPolicy();
        VendorInfo vendorInfo = VendorInfo.Factory.createDefaultVendorInfo();
        vendorInfo.setDefault( false );
        assertFalse( matchPolicy.match( vendorInfo ) );
    }
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.