Created
August 6, 2008 04:43
-
-
Save nkpart/4166 to your computer and use it in GitHub Desktop.
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
package com.vlc; | |
import static com.googlecode.instinct.expect.Expect.expect; | |
import com.googlecode.instinct.integrate.junit4.InstinctRunner; | |
import com.googlecode.instinct.marker.annotate.Specification; | |
import org.jmock.Expectations; | |
import org.junit.runner.RunWith; | |
@RunWith(InstinctRunner.class) | |
public final class InstinctFailContext { | |
private Runnable mockRunnable; | |
@Specification(expectedException = IllegalArgumentException.class) | |
public void shouldReportNicerFailsInIntellij() { | |
expect.that(new Expectations() { | |
{ | |
one(mockRunnable).run(); | |
} | |
}); | |
new Thing().foo(); | |
} | |
private static final class Thing { | |
public void foo() { | |
throw new IllegalArgumentException(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment