Package org.candlepin.model.activationkeys

Examples of org.candlepin.model.activationkeys.ActivationKeyContentOverride


        assertEquals("remaining-override", remaining.get(0).getName());
    }

    @Test
    public void testRemoveByContentLabel() {
        activationKeyContentOverrideCurator.create(new ActivationKeyContentOverride(key,
            "test-repo", "gpgcheck", "1"));
        activationKeyContentOverrideCurator.create(new ActivationKeyContentOverride(key,
            "test-repo", "foo", "foo-v"));
        activationKeyContentOverrideCurator.create(new ActivationKeyContentOverride(key,
            "should-remain", "remaining", "true"));
        activationKeyContentOverrideCurator.removeByContentLabel(key, "test-repo");
        List<ActivationKeyContentOverride> remaining =
            activationKeyContentOverrideCurator.getList(key);
        assertEquals(1, remaining.size());
View Full Code Here


    @Test
    public void testRemoveByConsumer() {
        ActivationKey key2 = new ActivationKey("other key", owner);
        key2 = activationKeyCurator.create(key2);
        activationKeyContentOverrideCurator.create(new ActivationKeyContentOverride(key2,
            "test-repo", "gpgcheck", "1"));

        activationKeyContentOverrideCurator.create(new ActivationKeyContentOverride(key,
            "test-repo", "gpgcheck", "1"));
        activationKeyContentOverrideCurator.create(new ActivationKeyContentOverride(key,
            "another-test-repo", "gpgcheck", "0"));
        activationKeyContentOverrideCurator.removeByParent(key);

        assertTrue(activationKeyContentOverrideCurator.getList(key).isEmpty());
        assertEquals(1, activationKeyContentOverrideCurator.getList(key2).size());
View Full Code Here

TOP

Related Classes of org.candlepin.model.activationkeys.ActivationKeyContentOverride

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.