Skip to content

Commit

Permalink
split out serenity-model - move part of junit tests to the model proj…
Browse files Browse the repository at this point in the history
…ect -part 2
  • Loading branch information
cliviu committed Apr 15, 2018
1 parent 94d7589 commit 24c83d2
Show file tree
Hide file tree
Showing 40 changed files with 21 additions and 5 deletions.
12 changes: 12 additions & 0 deletions serenity-core/src/test/java/sample/steps/FailingStep.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package sample.steps;

/**
* Created by john on 4/07/2014.
*/
public class FailingStep {

public Exception failsWithMessage(String message) {
return new IllegalArgumentException(message);
}

}
9 changes: 9 additions & 0 deletions serenity-model/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ dependencies {
compile "joda-time:joda-time:${jodaTimeVersion}"
compile "commons-collections:commons-collections:${commonsCollectionsVersion}"
compile "commons-io:commons-io:${commonsIoVersion}"
compile("commons-beanutils:commons-beanutils-core:${beanUtilsVersion}") {
exclude group: 'commons-logging', module: 'commons-logging'
}
compile "javax.validation:validation-api:${javaxValidationVersion}"
compile "net.sf.opencsv:opencsv:${openCsvVersion}"
compile "com.google.code.gson:gson:${gsonVersion}"
Expand Down Expand Up @@ -47,4 +50,10 @@ dependencies {
compile 'es.nitaur.markdown:txtmark:0.16'

testCompile project(':serenity-test-utils')
testCompile project(':serenity-sample-alternative-resources')
testCompile("org.spockframework:spock-core:${spockVersion}") {
exclude group: "junit"
exclude group: "org.codehaus.groovy"

}
}
5 changes: 0 additions & 5 deletions serenity-model/src/test/java/sample/steps/FailingStep.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package sample.steps;

import org.openqa.selenium.ElementNotVisibleException;

/**
* Created by john on 4/07/2014.
*/
Expand All @@ -11,7 +9,4 @@ public Exception failsWithMessage(String message) {
return new IllegalArgumentException(message);
}

public Exception failsWith(ElementNotVisibleException cause) {
return cause;
}
}

0 comments on commit 24c83d2

Please sign in to comment.