cucumber/cucumber-jvm — Issue #76: Support org.junit.[Before|After]?
Author: aslakhellesoy
Created: 2011-10-28 21:31:51+00:00
State: open

cucumber-java has its own `cucumber.annotation.Before` and `cucumber.annotation.After` annotations. This is because cucumber-java doesn't depend on JUnit at all. -It's only the optional cucumber-junit package that depends on JUnit.

This is likely to confuse people. Should we make cucumber-java treat `org.junit.Before` just like `cucumber.annotation.Before`? This can be achieved by having cucumber-junit register the JUnit annotation classes via a static method.

`org.junit.[BeforeClass|AfterClass]` is another story. What should we do about that? Do we have to?