Skip to content

Commit

Permalink
jknack#188 disable two tests that will never work on Java 7 and Java …
Browse files Browse the repository at this point in the history
…8 now

because they expect failure due to missing rhino dependency
  • Loading branch information
Jörg von Frantzius committed Jul 14, 2015
1 parent 30e6b4a commit 00b6c0f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.junit.Assert.assertNotNull;

import org.junit.Ignore;
import org.junit.Test;

import com.github.jknack.handlebars.AbstractTest;
Expand All @@ -14,11 +15,13 @@ public void compileWithoutRhino() throws Exception {
assertNotNull(compile("{{var}}"));
}

@Ignore // expected failure now will never happen anymore with Java 7 and Java 8
@Test(expected = NoClassDefFoundError.class)
public void mustFailWhenCallToJavaScript() throws Exception {
compile("{{var}}").toJavaScript();
}

@Ignore // expected failure now will never happen anymore with Java 7 and Java 8
@Test(expected = IllegalStateException.class)
public void mustFailWhenUsingJsHelpers() throws Exception {
Handlebars handlebars = new Handlebars();
Expand Down

0 comments on commit 00b6c0f

Please sign in to comment.