Skip to content

Commit ed0a8f0

Browse files
committed
Fix deprecation in Java 17.
1 parent 606253c commit ed0a8f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/com/ticketmagpie/MainControllerIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import static org.hamcrest.Matchers.containsString;
44
import static org.junit.Assert.assertThat;
55

6+
import java.net.URI;
67
import java.net.URL;
78

89
import org.junit.Before;
@@ -31,7 +32,7 @@ public class MainControllerIT {
3132

3233
@Before
3334
public void setUp() throws Exception {
34-
this.base = new URL(TestEnvironment.baseUrl("localhost", port));
35+
this.base = new URI(TestEnvironment.baseUrl("localhost", port)).toURL();
3536
template = new TestRestTemplate();
3637
}
3738

0 commit comments

Comments
 (0)