Examples of translatePoolType()


Examples of org.candlepin.policy.js.pooltype.PoolComplianceType.translatePoolType()

            any(Consumer.class), any(Date.class))).
            thenReturn(suggested);

        PoolComplianceType pt = new PoolComplianceType();
        pt.setRawPoolType("unknown");
        pt.translatePoolType(i18n);
        when(poolTypeRules.getPoolType(any(Pool.class))).
            thenReturn(pt);

        Date date = new Date();
        Map<String, String> attrs =
View Full Code Here

Examples of org.candlepin.policy.js.pooltype.PoolComplianceType.translatePoolType()

    public Map<String, String> buildCalculatedAttributes(Pool p, Consumer c, Date date) {
        Map<String, String> attrMap = new HashMap<String, String>();

        PoolComplianceType type = poolTypeRules.getPoolType(p);
        type.translatePoolType(i18n);
        attrMap.put("compliance_type", type.getPoolType());

        if (c == null) {
            return attrMap;
        }
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.