Package org.candlepin.model

Examples of org.candlepin.model.ContentOverride


    }

    @Test
    public void testValidateValidCollection() {
        List<ContentOverride> overrides = new LinkedList<ContentOverride>();
        overrides.add(new ContentOverride("label", "testname", "value"));
        overrides.add(new ContentOverride("other label", "other name", "other value"));

        validator.validate(overrides);
    }
View Full Code Here


        validator.validate(overrides);
    }

    @Test
    public void testValidateValidOverride() {
        ContentOverride override = new ContentOverride("label", "testname", "value");
        validator.validate(override);
    }
View Full Code Here

        validator.validate(override);
    }

    @Test
    public void testValidateSingleInvalid() {
        ContentOverride override = new ContentOverride("label", "baseurl", "value");

        boolean gotException = false;
        try {
            validator.validate(override);
        }
View Full Code Here

    }

    @Test
    public void testValidateCollectionBothInvalid() {
        List<ContentOverride> overrides = new LinkedList<ContentOverride>();
        overrides.add(new ContentOverride("label", "baseurl", "value"));
        overrides.add(new ContentOverride("other label", "name", "other value"));

        boolean gotException = false;
        try {
            validator.validate(overrides);
        }
View Full Code Here

TOP

Related Classes of org.candlepin.model.ContentOverride

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.