This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package org.dukecon.server.convert | ||
|
||
import org.dukecon.server.convert.impl.StylesCssResource | ||
import org.junit.Ignore | ||
import org.junit.Test | ||
|
||
/** | ||
* @author Falk Sippach, [email protected], @sippsack | ||
*/ | ||
// TODO Falk: Please clean ignored tests up - or even better, do a full refactoring since it is not much fun to compare lengthy text strings in test cases! | ||
@Ignore | ||
class StylesCssResourceTests { | ||
|
||
@Test | ||
void testCreateStylesCss() { | ||
def stylesCssResource = new StylesCssResource("testconfid", [dark: 'darkblue'], '/templates/styles.ftl') | ||
def stylesCssResource = new StylesCssResource("testconfid", [dark: 'darkblue'], '/templates/styles.gtl') | ||
assert 'conferences/testconfid/styles.css' == stylesCssResource.getFileName() | ||
assert '''.dark { | ||
color: darkblue; | ||
|
@@ -157,6 +159,6 @@ h1 a.active:hover { | |
button.highlightBack:hover { | ||
background-color: ${styles.highlight}; | ||
} | ||
''' == this.getClass().getResource('/templates/styles.ftl').text | ||
''' == this.getClass().getResource('/templates/styles.gtl').text | ||
} | ||
} |