StandaloneSession session = new StandaloneSession();
PentahoSessionHolder.setSession( session );
PentahoSystem.get( IPluginManager.class ).reload();
IThemeManager themeManager = PentahoSystem.get( IThemeManager.class );
assertTrue( themeManager.getSystemThemeIds().contains( "core" ) );
assertNotNull( themeManager.getModuleThemeInfo( "themeplugin" ) );
assertEquals( 1, themeManager.getModuleThemeInfo( "themeplugin" ).getSystemThemes().size() );
Set<ThemeResource> resources =
themeManager.getModuleThemeInfo( "themeplugin" ).getSystemThemes().get( 0 ).getResources();
assertEquals( 3, resources.size() );
assertNotNull( themeManager.getModuleThemeInfo( "test-module" ) );
assertEquals( 1, themeManager.getModuleThemeInfo( "test-module" ).getSystemThemes().size() );
resources = themeManager.getModuleThemeInfo( "test-module" ).getSystemThemes().get( 0 ).getResources();
assertEquals( 3, resources.size() );
}