use of org.candlepin.model.RulesCurator in project candlepin by candlepin.
the class RulesExporterTest method testMetaExporter.
@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());
}
Aggregations