Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Truncate README to 80 characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Jan 16, 2013
1 parent d833f92 commit ed57b18
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@ Examples
assertThat(view.getVisibility()).isEqualTo(View.GONE);
```

When failing, the _FEST Android_ assertion produces an output which allows you to immediately recognize the problem: `Expected visibility <gone> but was <invisible>`.
When failing, the _FEST Android_ assertion produces an output which allows you
to immediately recognize the problem:
`Expected visibility <gone> but was <invisible>`.

Compare that to the output of regular _FEST_ `Expected:<[8]> but was:<[4]>` and regular _JUnit_ `Expected: <8> but was: <4>` and you should immediately see the advantage.
Compare that to the output of regular _FEST_ `Expected:<[8]> but was:<[4]>` and
regular _JUnit_ `Expected: <8> but was: <4>` and you should immediately see the\
advantage.


Because _FEST Android_ offers assertions directly on objects rather than properties you can chain multiple assertions.
Because _FEST Android_ offers assertions directly on objects rather than
properties you can chain multiple assertions.

* FEST Android:

Expand Down Expand Up @@ -67,7 +72,9 @@ Because _FEST Android_ offers assertions directly on objects rather than propert
assertThat(layout.getShowDividers()).isEqualTo(SHOW_DIVIDERS_MIDDLE);
```

Assertions exist for nearly every object that you would ever want to test, from `LinearLayout` to `ActionBar` to `Fragment` to `MenuItem`. Everything in the support library is included too.
Assertions exist for nearly every object that you would ever want to test, from
`LinearLayout` to `ActionBar` to `Fragment` to `MenuItem`. Everything in the
support library is included too.

To get started writing tests just add the following import:

Expand All @@ -80,7 +87,8 @@ import static com.squareup.fest.Assertions.assertThat;
Extending
---------

The provided assertions have also been designed to be extended for any custom controls you have developed.
The provided assertions have also been designed to be extended for any custom
controls you have developed.

```java
public class CustomLayout extends LinearLayout {
Expand Down

0 comments on commit ed57b18

Please sign in to comment.