This repository has been archived on 2022-07-06. You can view files and clone it, but cannot push or open issues or pull requests.
2011-06-24 21:11:58 +02:00
|
|
|
package be.cegeka.junit.jasmine.classes;
|
|
|
|
|
|
|
|
import static junit.framework.Assert.fail;
|
|
|
|
import static org.fest.assertions.Assertions.assertThat;
|
|
|
|
|
|
|
|
import org.junit.After;
|
|
|
|
import org.junit.Before;
|
|
|
|
|
|
|
|
import be.cegeka.junit.jasmine.JasmineSuite;
|
|
|
|
import be.cegeka.rhino.RhinoContext;
|
|
|
|
|
|
|
|
@JasmineSuite(specs = { "emptySpec.js" })
|
2011-06-26 21:44:55 +02:00
|
|
|
public class JasmineTestRunnerBeforeAndAfterClass extends JasmineTestRunnerBeforeAndAfterSuperClass {
|
|
|
|
|
|
|
|
@Before
|
|
|
|
public void runMij() {
|
|
|
|
assertThat(runs).isEmpty();
|
|
|
|
runs.add(RUN_MIJ_FLAG);
|
|
|
|
}
|
|
|
|
|
|
|
|
@After
|
|
|
|
public void runMijAfter() {
|
|
|
|
assertThat(runs).containsOnly(RUN_MIJ_FLAG, RUN_MIJ_OOK_FLAG);
|
|
|
|
runs.remove((Object) RUN_MIJ_FLAG);
|
|
|
|
}
|
|
|
|
|
|
|
|
@After
|
|
|
|
public void runMijAfterOok(RhinoContext context) {
|
|
|
|
assertThat(runs).containsOnly(RUN_MIJ_OOK_FLAG);
|
|
|
|
runs.remove((Object) RUN_MIJ_OOK_FLAG);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void runMijNiet() {
|
|
|
|
fail("should not be run");
|
|
|
|
}
|
2011-06-24 21:11:58 +02:00
|
|
|
}
|