Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
kitdim committed Feb 7, 2024
1 parent 06c34d4 commit 79292ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/src/test/java/hexlet/code/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.io.FileReader;
import java.io.IOException;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.StringJoiner;

import hexlet.code.model.Url;
Expand Down Expand Up @@ -73,7 +72,6 @@ public void testShowUrls() {
@Test
public void testCreateUrl() throws SQLException {
var url = Url.builder()
.createdAt(new Timestamp(System.currentTimeMillis()))
.name("https://www.example.com")
.build();
UrlsRepository.save(url);
Expand Down Expand Up @@ -105,7 +103,6 @@ public void testCreateUrl() throws SQLException {
public void testShowUrl() throws SQLException {
var url = Url.builder()
.name("https://www.example1.com")
.createdAt(new Timestamp(System.currentTimeMillis()))
.build();
UrlsRepository.save(url);
JavalinTest.test(app, ((server, client) -> {
Expand All @@ -120,7 +117,6 @@ public void testShowUrl() throws SQLException {
public void testCheckUrl() throws SQLException {
var url = Url.builder()
.name(urlName)
.createdAt(new Timestamp(System.currentTimeMillis()))
.build();
UrlsRepository.save(url);

Expand Down

0 comments on commit 79292ac

Please sign in to comment.