|
2 | 2 |
|
3 | 3 | import java.time.Instant;
|
4 | 4 |
|
5 |
| -import org.assertj.core.api.Assertions; |
6 | 5 | import org.junit.jupiter.api.Test;
|
7 | 6 |
|
8 | 7 | import com.devonfw.tools.ide.url.model.AbstractUrlModelTest;
|
@@ -34,16 +33,16 @@ public void testReadJson() {
|
34 | 33 | UrlStatusFile status = version.getOrCreateStatus();
|
35 | 34 | StatusJson statusJson = status.getStatusJson();
|
36 | 35 | // then
|
37 |
| - Assertions.assertThat(statusJson.getUrls()).hasSize(1); |
| 36 | + assertThat(statusJson.getUrls()).hasSize(1); |
38 | 37 | UrlStatus urlStatus = statusJson.getUrls().values().iterator().next();
|
39 | 38 | UrlStatusState success = urlStatus.getSuccess();
|
40 |
| - Assertions.assertThat(success.getTimestamp()).isEqualTo(Instant.parse("2023-02-21T15:03:09.387386Z")); |
41 |
| - Assertions.assertThat(success.getCode()).isNull(); |
42 |
| - Assertions.assertThat(success.getMessage()).isNull(); |
| 39 | + assertThat(success.getTimestamp()).isEqualTo(Instant.parse("2023-02-21T15:03:09.387386Z")); |
| 40 | + assertThat(success.getCode()).isNull(); |
| 41 | + assertThat(success.getMessage()).isNull(); |
43 | 42 | UrlStatusState error = urlStatus.getError();
|
44 |
| - Assertions.assertThat(error.getTimestamp()).isEqualTo(Instant.parse("2023-01-01T23:59:59.999999Z")); |
45 |
| - Assertions.assertThat(error.getCode()).isEqualTo(500); |
46 |
| - Assertions.assertThat(error.getMessage()).isEqualTo("core dumped"); |
| 43 | + assertThat(error.getTimestamp()).isEqualTo(Instant.parse("2023-01-01T23:59:59.999999Z")); |
| 44 | + assertThat(error.getCode()).isEqualTo(500); |
| 45 | + assertThat(error.getMessage()).isEqualTo("core dumped"); |
47 | 46 | }
|
48 | 47 |
|
49 | 48 | }
|
0 commit comments