Package npanday.vendor

Examples of npanday.vendor.VendorInfoTransitionRule.process()


        VendorInfoTransitionRuleFactory factory = Factory.getVendorInfoTransitionRuleFactory(
            VendorTestFactory.getDefaultSetup( "MICROSOFT", "2.0.50727", "2.0.50727" ), vendorInfoList );

        VendorInfoTransitionRule rule = factory.createVendorInfoSetterForNTF();
        VendorInfo vendorInfo = VendorTestFactory.getVendorInfo( Vendor.MONO, "1.1.18", null );
        VendorInfoState vendorInfoState = rule.process( vendorInfo );
        assertEquals( "Incorrect Vendor State", vendorInfoState, VendorInfoState.NTT );
        assertEquals( "Incorrect Vendor", Vendor.MONO, vendorInfo.getVendor() );
        assertEquals( "2.0.50727", vendorInfo.getFrameworkVersion() );
        assertEquals( "1.1.18", vendorInfo.getVendorVersion() );
    }
View Full Code Here


        VendorInfoTransitionRuleFactory factory = Factory.getVendorInfoTransitionRuleFactory(
            VendorTestFactory.getDefaultSetup( "MICROSOFT", "2.0.50727", "2.0.50727" ), vendorInfoList );

        VendorInfoTransitionRule rule = factory.createVendorInfoSetterForNFF();
        VendorInfo vendorInfo = VendorTestFactory.getVendorInfo( Vendor.MONO, null, null );
        VendorInfoState vendorInfoState = rule.process( vendorInfo );
        assertEquals( "Incorrect Vendor State", vendorInfoState, VendorInfoState.POST_PROCESS );
        assertEquals( Vendor.MONO, vendorInfo.getVendor() );
        assertEquals( "2.0.50727", vendorInfo.getFrameworkVersion() );
        assertEquals( "1.1.18", vendorInfo.getVendorVersion() );
    }
View Full Code Here

        VendorInfoTransitionRuleFactory factory = Factory.getVendorInfoTransitionRuleFactory(
            VendorTestFactory.getDefaultSetup( "MONO", "1.1.18", "1.1.4322" ), vendorInfoList );

        VendorInfoTransitionRule rule = factory.createVendorInfoSetterForNFF();
        VendorInfo vendorInfo = VendorTestFactory.getVendorInfo( Vendor.MONO, null, null );
        VendorInfoState vendorInfoState = rule.process( vendorInfo );
        assertEquals( "Incorrect Vendor State", vendorInfoState, VendorInfoState.POST_PROCESS );
        assertEquals( Vendor.MONO, vendorInfo.getVendor() );
        assertEquals( "1.1.4322", vendorInfo.getFrameworkVersion() );
        assertEquals( "1.1.18", vendorInfo.getVendorVersion() );
    }
View Full Code Here

        VendorInfoTransitionRuleFactory factory = Factory.getVendorInfoTransitionRuleFactory(
            VendorTestFactory.getDefaultSetup( "MICROSOFT", "2.0.50727", "2.0.50727" ), vendorInfoList );

        VendorInfoTransitionRule rule = factory.createVendorInfoSetterForNFT();
        VendorInfo vendorInfo = VendorTestFactory.getVendorInfo( Vendor.MONO, null, "2.0.50727" );
        VendorInfoState vendorInfoState = rule.process( vendorInfo );
        assertEquals( "Incorrect Vendor State", vendorInfoState, VendorInfoState.NTT );
        assertEquals( Vendor.MONO, vendorInfo.getVendor() );
        assertEquals( "2.0.50727", vendorInfo.getFrameworkVersion() );
        assertEquals( "1.1.18", vendorInfo.getVendorVersion() );
    }
View Full Code Here

        VendorInfoTransitionRuleFactory factory = Factory.getVendorInfoTransitionRuleFactory(
            VendorTestFactory.getDefaultSetup( "MONO", "1.1.18", "2.0.50727" ), vendorInfoList );

        VendorInfoTransitionRule rule = factory.createVendorInfoSetterForNFT();
        VendorInfo vendorInfo = VendorTestFactory.getVendorInfo( Vendor.MONO, null, "2.0.50727" );
        VendorInfoState vendorInfoState = rule.process( vendorInfo );
        assertEquals( "Incorrect Vendor State", vendorInfoState, VendorInfoState.NTT );
        assertEquals( Vendor.MONO, vendorInfo.getVendor() );
        assertEquals( "2.0.50727", vendorInfo.getFrameworkVersion() );
        assertEquals( "1.1.18", vendorInfo.getVendorVersion() );
    }
View Full Code Here

        VendorInfoTransitionRuleFactory factory = Factory.getVendorInfoTransitionRuleFactory(
            VendorTestFactory.getDefaultSetup( "MICROSOFT", "2.0.50727", "2.0.50727" ), new ArrayList<VendorInfo>() );

        VendorInfoTransitionRule rule = factory.createVendorInfoSetterForNFT();
        VendorInfo vendorInfo = VendorTestFactory.getVendorInfo( Vendor.MONO, null, "2.0.50727" );
        VendorInfoState vendorInfoState = rule.process( vendorInfo );
        assertEquals( "Incorrect Vendor State", vendorInfoState, VendorInfoState.POST_PROCESS );
    }

    private static class Factory
    {
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.