Package org.candlepin.model

Examples of org.candlepin.model.RulesCurator


    private String FAKE_RULES = "//Version: 2.0\nHELLO WORLD";

    @Test
    public void testMetaExporter() throws IOException {
        RulesCurator rulesCurator = mock(RulesCurator.class);
        when(rulesCurator.getRules()).thenReturn(new Rules(FAKE_RULES));
        RulesExporter exporter = new RulesExporter(rulesCurator);
        StringWriter writer = new StringWriter();
        exporter.export(writer);
        assertEquals(FAKE_RULES, writer.toString());
    }
View Full Code Here

TOP

Related Classes of org.candlepin.model.RulesCurator

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.