Skip to content

Commit

Permalink
Get rid of @pending. Closes #271
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Mar 21, 2012
1 parent 6863298 commit 2a400fe
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
6 changes: 5 additions & 1 deletion History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## [Git master](https://github.com/cucumber/cucumber-jvm/compare/v1.0.0.RC22...master)
## [Git master](https://github.com/cucumber/cucumber-jvm/compare/v1.0.0.RC23...master)

* The @Pending annotation no longer exists. Throw a PendingException instead ([#271](https://github.com/cucumber/cucumber-jvm/issues/271) Aslak Hellesøy)

## [1.0.0.RC23](https://github.com/cucumber/cucumber-jvm/compare/v1.0.0.RC22...v1.0.0.RC23)

* [JUnit] CucumberException when running Cucumber with Jacoco code coverage ([#258](https://github.com/cucumber/cucumber-jvm/issues/258) Jan Stamer, Aslak Hellesøy)
* [Scala] Scala Javadoc problems with build ([#231](https://github.com/cucumber/cucumber-jvm/issues/231) Aslak Hellesøy)
Expand Down
2 changes: 1 addition & 1 deletion examples/java-helloworld/build.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<project name="java-helloworld" basedir="." default="runcukes">
<property name="repo" value="https://oss.sonatype.org/content/repositories/releases"/>
<property name="cucumber.version" value="1.0.0.RC21"/>
<property name="cucumber.version" value="1.0.0.RC23"/>
<property name="gherkin.version" value="2.9.1"/>

<target name="download">
Expand Down
6 changes: 3 additions & 3 deletions examples/java-helloworld/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@

<groupId>info.cukes</groupId>
<artifactId>java-helloworld</artifactId>
<version>1.0.0.RC21</version>
<version>1.0.0.RC23</version>
<packaging>jar</packaging>
<name>Examples: Java Hello World</name>

<dependencies>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.0.0.RC21</version>
<version>1.0.0.RC23</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.0.0.RC21</version>
<version>1.0.0.RC23</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@Cucumber.Options(format = {"pretty", "html:target/cucumber"})
public class RunCukesTest {
}
12 changes: 0 additions & 12 deletions java/src/main/java/cucumber/annotation/Pending.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package cucumber.runtime.java;

import cucumber.annotation.Pending;
import cucumber.runtime.CucumberException;
import cucumber.runtime.JdkPatternArgumentMatcher;
import cucumber.runtime.ParameterType;
import cucumber.runtime.PendingException;
import cucumber.runtime.StepDefinition;
import gherkin.I18n;
import gherkin.formatter.Argument;
Expand Down Expand Up @@ -33,9 +31,6 @@ public JavaStepDefinition(Method method, Pattern pattern, ObjectFactory objectFa
}

public void execute(I18n i18n, Object[] args) throws Throwable {
if (method.isAnnotationPresent(Pending.class)) {
throw new PendingException(method.getAnnotation(Pending.class).value());
}
Class<?> clazz = method.getDeclaringClass();
Object target = objectFactory.getInstance(clazz);
try {
Expand Down

0 comments on commit 2a400fe

Please sign in to comment.