Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/test/java/fr/paris/lutece/portal/web/template/CommonsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@ public class CommonsTest extends LuteceTestCase {
private static final String MARK_FOREIGN_KEYS_LIST = "id_foreigns_list";
private static final String[] CHARTERS_FOLDERS = { "css", "fonts", "js" };

private CommonsInclude currentCommonsInclude;

protected void setUp( ) throws Exception
{
super.setUp( );
currentCommonsInclude = CommonsService.getCurrentCommonsInclude( );
}

protected void tearDown( ) throws Exception
{
CommonsService.activateCommons( currentCommonsInclude.getKey( ) );
super.tearDown( );
}

@Test
public void testCommonsTemplates() throws IOException, TemplateException {
String strPath = getClass().getResource(TEMPLATES_FOLDER).getPath();
Expand Down