Skip to content

Commit

Permalink
fix gradle dependencies in README
Browse files Browse the repository at this point in the history
Fix the examples, they miss atrium-assertions
  • Loading branch information
robstoll committed Jul 16, 2018
1 parent 0418d1d commit 2954b5d
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ Atrium can be retrieved from [bintray](https://bintray.com/robstoll/tutteli-jars

gradle:
```
testCompile 'ch.tutteli:atrium-api:0.2.0'
testCompile 'ch.tutteli:atrium-impl-robstoll:0.2.0'
buildscript {
ext { atrium_version='0.2.0' }
}
dependencies {
testCompile "ch.tutteli:atrium-api:$atrium_version"
testCompile "ch.tutteli:atrium-impl-robstoll:$atrium_version"
testCompile "ch.tutteli:atrium-assertions:$atrium_version"
}
```

maven:
Expand All @@ -43,6 +50,12 @@ maven:
<version>0.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.tutteli</groupId>
<artifactId>atrium-assertions</artifactId>
<version>0.2.0</version>
<scope>test</scope>
</dependency>
```

# Use own Assertion Verbs
Expand All @@ -66,9 +79,16 @@ If you still insist of using the provided assertion verbs, then add the followin

gradle:
```
testCompile 'ch.tutteli:atrium-api:0.2.0'
testCompile 'ch.tutteli:atrium-impl-robstoll:0.2.0'
testCompile 'ch.tutteli:atrium-verbs:0.2.0'
buildscript {
ext { atrium_version='0.2.0' }
}
dependencies {
testCompile "ch.tutteli:atrium-api:$atrium_version"
testCompile "ch.tutteli:atrium-impl-robstoll:$atrium_version"
testCompile "ch.tutteli:atrium-assertions:$atrium_version"
testCompile "ch.tutteli:atrium-verbs:$atrium_version"
}
```

maven:
Expand All @@ -85,6 +105,12 @@ maven:
<version>0.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.tutteli</groupId>
<artifactId>atrium-assertions</artifactId>
<version>0.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.tutteli</groupId>
<artifactId>atrium-verbs</artifactId>
Expand Down Expand Up @@ -131,8 +157,8 @@ expect {
}.toThrow<IllegalStateException> {
message.contains("name")
}
// expect to throw: IllegalStateException (java.lang.IllegalStateException)
// exception was: IllegalArgumentException (java.lang.IllegalArgumentException)
// expect the thrown exception: IllegalStateException (java.lang.IllegalStateException)
// is a: IllegalArgumentException (java.lang.IllegalArgumentException)
```

Have a look at the [specifications](./tree/master/atrium-spec/src/main/kotlin/ch/tutteli/atrium/spec) for more examples.
Expand Down

0 comments on commit 2954b5d

Please sign in to comment.