Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Docs
  • Loading branch information
aslakhellesoy committed Jun 29, 2012
1 parent 13ae0ea commit d55b7c6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/pom.xml
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-deps</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
Expand Down
8 changes: 8 additions & 0 deletions core/src/main/java/cucumber/api/Transform.java
Expand Up @@ -7,6 +7,14 @@
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@java.lang.annotation.Target({ElementType.PARAMETER})
@java.lang.annotation.Documented
/**
* Step definition parameters can be annotated with this annotation to give full
* control over how a step argument gets converted to an object. Although the
* annotation value can be a {@link SingleValueConverter} it is recommended to
* use a {@link Transformer} subclass instead.
*
* @see Transformer
*/
public @interface Transform {
Class<? extends SingleValueConverter> value();
}
2 changes: 1 addition & 1 deletion core/src/main/java/cucumber/api/Transformer.java
Expand Up @@ -7,7 +7,7 @@

/**
* Allows transformation of a step definition argument to a custom type, giving you full control
* over how that type is instantiatd. Consider the following Gherkin step:
* over how that type is instantiated. Consider the following Gherkin step:
* <p/>
* <pre>Given I did my laundry 3 days ago</pre>
* <p/>
Expand Down
9 changes: 4 additions & 5 deletions deps/pom.xml
Expand Up @@ -2,16 +2,15 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.0.11-SNAPSHOT</version>
</parent>

<groupId>info.cukes</groupId>
<artifactId>cucumber-deps</artifactId>
<packaging>jar</packaging>
<name>Cucumber-JVM: Deps</name>
<version>1.0.0-SNAPSHOT</version>

<dependencies>
<!-- These dependencies are packaged into a new package to prevent conflicts with users' own code -->
Expand Down

0 comments on commit d55b7c6

Please sign in to comment.