Package org.candlepin.model

Examples of org.candlepin.model.ProductCertificate


    @Test
    public void validProduct() {
        Product product = new Product("50", "Test Product",
            "Standard", "1", "x86_64", "Base");
        ProductCertificate cert = createCert(product);

        Assert.assertEquals(product, cert.getProduct());
    }
View Full Code Here


        Product p = createProduct();
        p = productResource.createProduct(p);
        // ensure we check SecurityHole
        securityInterceptor.enable();

        ProductCertificate cert = new ProductCertificate();
        cert.setCert("some text");
        cert.setKey("some key");
        cert.setProduct(p);
        productCertificateCurator.create(cert);
        ProductCertificate cert1 = productResource.getProductCertificate(p.getId());
        assertEquals(cert, cert1);
    }
View Full Code Here

                }
            }

            // Real products have a numeric id.
            if (StringUtils.isNumeric(product.getId())) {
                ProductCertificate cert = productAdapter.getProductCertificate(product);
                // XXX: not all product adapters implement getProductCertificate,
                // so just skip over this if we get null back
                // XXX: need to decide if the cert should always be in the export, or never.
                if (cert != null) {
                    file = new File(productDir.getCanonicalPath(),
View Full Code Here

TOP

Related Classes of org.candlepin.model.ProductCertificate

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.