Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kitdim committed Feb 6, 2024
1 parent 068582e commit 8a3cbf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/test/java/hexlet/code/AppTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package hexlet.code;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.io.BufferedReader;
Expand Down Expand Up @@ -96,6 +97,7 @@ public void testCreateUrl() throws SQLException {
response = client.post(NamedRoutes.urlsPath(), responseBody);

assertTrue(UrlsRepository.findByName("httpdssds31s://www.example2.com").isEmpty());
assertFalse(response.isRedirect());
}));
}

Expand Down

0 comments on commit 8a3cbf7

Please sign in to comment.