Skip to content

Commit 1f7e743

Browse files
authored
Update README.md
1 parent 1afe46e commit 1f7e743

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Reality Check is an open source Fluent Assertion framework for Java.
99

1010
#### Check files
1111
```
12-
Reality.checkThat(new File("sampleA.csv")).isNull();
12+
Reality.checkThat(file).isNull();
1313
Reality.checkThat(file).hasSameContentAs(file);
1414
```
1515
#### Check CSV files
@@ -29,14 +29,14 @@ Reality Check is an open source Fluent Assertion framework for Java.
2929
```
3030
#### Check InputStreams
3131
```
32-
Reality.checkThat(new ByteArrayInputStream(bytes1)).hasSameContentAs(new ByteArrayInputStream(bytes2));
33-
Reality.checkThat(new ByteArrayInputStream(bytes1)).hasNotSameContentAs(new ByteArrayInputStream(bytes2));
32+
Reality.checkThat(new ByteArrayInputStream(byteArray1)).hasSameContentAs(new ByteArrayInputStream(byteArray2));
33+
Reality.checkThat(new ByteArrayInputStream(byteArray1)).hasNotSameContentAs(new ByteArrayInputStream(byteArray2));
3434
```
3535
#### Check with custom message
3636
```
3737
Reality.checkWithMessage("File is NULL").that(file).isNotNull();
3838
Reality.checkWithMessage("String has wrong length").that(string).hasLength(6);
39-
Reality.checkWithMessage("InputStream is NULL").that(new ByteArrayInputStream(bytes)).isNotNull();
39+
Reality.checkWithMessage("InputStream is NULL").that(new ByteArrayInputStream(byteArray)).isNotNull();
4040
Reality.checkWithMessage("Files have different content").thatCsvFile(file).hasSameContentAs(file);
4141
```
4242
#### Do multiple checks

0 commit comments

Comments
 (0)