use of org.ambraproject.wombat.config.theme.TestClasspathTheme in project wombat by PLOS.
the class TestSpringConfiguration method themeGraph.
@Bean
public ThemeGraph themeGraph() throws ThemeGraph.ThemeConfigurationException {
TestClasspathTheme rootTheme = new TestClasspathTheme("root", ImmutableList.of());
TestClasspathTheme theme1 = new TestClasspathTheme("site1", ImmutableList.of(rootTheme));
TestClasspathTheme theme2 = new TestClasspathTheme("site2", ImmutableList.of(rootTheme));
Set<Theme> themes = ImmutableSet.of(rootTheme, theme1, theme2);
return new ThemeGraph(Maps.uniqueIndex(themes, Theme::getKey));
}
Aggregations