Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (26 sloc) 1.924 kB
13e608e @alexruiz Update README.md
authored
1 FEST-Assert provides a fluent interface for assertions.
5985ba0 @joel-costigliola Update README.md
joel-costigliola authored
2
13e608e @alexruiz Update README.md
authored
3 Example:
cec31c3 @alexruiz Update README.md
authored
4
f6f31ed @joel-costigliola Add links to Guava and Joda Time assertions modules
joel-costigliola authored
5 ```java
cec31c3 @alexruiz Update README.md
authored
6 int removed = employees.removeFired();
7 assertThat(removed).isZero();
8
9 List<Employee> newEmployees = employees.hired(TODAY);
10 assertThat(newEmployees).hasSize(6)
11 .contains(frodo, sam);
12
13 assertThat(yoda).isInstanceOf(Jedi.class)
14 .isEqualTo(foundJedi)
15 .isNotEqualTo(foundSith);
16 ```
17
13e608e @alexruiz Update README.md
authored
18 The 2.x branch is an attempt to learn from mistakes made in the the 1.x release, in terms of readability and extensibility.
5985ba0 @joel-costigliola Update README.md
joel-costigliola authored
19
13e608e @alexruiz Update README.md
authored
20 FEST's assertions are incredibly easy to write: just type **```assertThat```** followed the actual value and a dot, and any Java
21 IDE will show you all the assertions available for the type of the object to verify. No more confusion about the
cf4140e @alexruiz Added README.
authored
22 order of the "expected" and "actual" values. Our assertions are very readable as well: they read very close to plain
23 English, making it easier for non-technical people to read test code.
24
f6f31ed @joel-costigliola Add links to Guava and Joda Time assertions modules
joel-costigliola authored
25 FEST provides also separate modules for :
26 * [**Joda Time assertions**](https://github.com/joel-costigliola/fest-joda-time-assert)
27 * [**Guava assertions**](https://github.com/joel-costigliola/fest-guava-assert)
3a6e82c @JakeWharton Add a link to the Android assertions.
JakeWharton authored
28 * [**Android assertions**](http://square.github.com/fest-android)
f6f31ed @joel-costigliola Add links to Guava and Joda Time assertions modules
joel-costigliola authored
29
3814e52 @joel-costigliola Mention gitbub wiki documentation.
joel-costigliola authored
30 For more details please visit :
31
13e608e @alexruiz Update README.md
authored
32 * **[FEST-Assert's wiki](https://github.com/alexruiz/fest-assert-2.x/wiki)** for the most up to date documentation.
1c3d6ba @joel-costigliola Add link to fest-examples project and Sonar reports
joel-costigliola authored
33 * **[fest-examples project ](https://github.com/joel-costigliola/fest-examples/tree/master/src/main/java/org/fest/assertions/examples)** project showing Fest assertions running examples.
7e7d291 @joel-costigliola add cloudbees built on Dev@Cloud image
joel-costigliola authored
34
1c3d6ba @joel-costigliola Add link to fest-examples project and Sonar reports
joel-costigliola authored
35 Many thanks to Cloudbees for their FOSS program that allows FEST to have a **[Jenkins CI server](https://fest.ci.cloudbees.com/#)** and Sonar for **[code quality report](http://nemo.sonarsource.org/dashboard/index/424557)**.
5985ba0 @joel-costigliola Update README.md
joel-costigliola authored
36
ef5f13c @joel-costigliola github #82 - refactor api tests
joel-costigliola authored
37 ![cloudbees](/alexruiz/fest-assert-2.x/raw/master/src/site/resources/images/built-on-Dev@Cloud-Cloudbees.png)
Something went wrong with that request. Please try again.