-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- encode parameters in HTML report (Issue-#9) - fix issue where last step was always marked as failed eventhought it should be skipped - fix issue where some test runners (e.g. Eclipse) did not mark a test as failed - deprecate Schritte-class and added Stufe-class instead
- Loading branch information
Jan Schäfer
committed
Jun 29, 2014
1 parent
3608f02
commit f80df9a
Showing
16 changed files
with
131 additions
and
71 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,6 @@ public interface ScenarioListener { | |
|
||
void introWordAdded( String word ); | ||
|
||
void stepMethodFailed( Throwable t ); | ||
|
||
} |
40 changes: 3 additions & 37 deletions
40
jgiven-core/src/main/java/com/tngtech/jgiven/lang/de/Schritte.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,7 @@ | ||
package com.tngtech.jgiven.lang.de; | ||
|
||
import com.tngtech.jgiven.annotation.IntroWord; | ||
import com.tngtech.jgiven.base.StageBase; | ||
|
||
/** | ||
* A German version for step definitions | ||
* @deprecated will be removed with version 0.3.0. Use {@link Stufe} instead | ||
*/ | ||
public class Schritte<SELF extends Schritte<?>> extends StageBase<SELF> { | ||
|
||
@IntroWord | ||
public SELF gegeben() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF wenn() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF dann() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF und() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF aber() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF mit() { | ||
return self(); | ||
} | ||
|
||
} | ||
@Deprecated | ||
public class Schritte<SELF extends Schritte<?>> extends Stufe<SELF> {} |
43 changes: 43 additions & 0 deletions
43
jgiven-core/src/main/java/com/tngtech/jgiven/lang/de/Stufe.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.tngtech.jgiven.lang.de; | ||
|
||
import com.tngtech.jgiven.Stage; | ||
import com.tngtech.jgiven.annotation.IntroWord; | ||
import com.tngtech.jgiven.base.StageBase; | ||
|
||
/** | ||
* Eine deutsche Version der {@link Stage}-Klasse | ||
* | ||
*/ | ||
public class Stufe<SELF extends Stufe<?>> extends StageBase<SELF> { | ||
|
||
@IntroWord | ||
public SELF gegeben() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF wenn() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF dann() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF und() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF aber() { | ||
return self(); | ||
} | ||
|
||
@IntroWord | ||
public SELF mit() { | ||
return self(); | ||
} | ||
|
||
} |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ | |
|
||
public class ThenTestStage extends Stage<ThenTestStage> { | ||
|
||
public void something_happened() {} | ||
|
||
} |
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
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
Oops, something went wrong.