File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Reality Check is an open source Fluent Assertion framework for Java.
9
9
10
10
#### Check files
11
11
```
12
- Reality.checkThat(new File("sampleA.csv") ).isNull();
12
+ Reality.checkThat(file ).isNull();
13
13
Reality.checkThat(file).hasSameContentAs(file);
14
14
```
15
15
#### Check CSV files
@@ -29,14 +29,14 @@ Reality Check is an open source Fluent Assertion framework for Java.
29
29
```
30
30
#### Check InputStreams
31
31
```
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 ));
34
34
```
35
35
#### Check with custom message
36
36
```
37
37
Reality.checkWithMessage("File is NULL").that(file).isNotNull();
38
38
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();
40
40
Reality.checkWithMessage("Files have different content").thatCsvFile(file).hasSameContentAs(file);
41
41
```
42
42
#### Do multiple checks
You can’t perform that action at this time.
0 commit comments