Skip to content

Commit a87dba0

Browse files
committed
test: remove BandwidthEndpointTest implementation
1 parent bb8969c commit a87dba0

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed
Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,7 @@
1-
import static org.junit.jupiter.api.Assertions.assertEquals;
2-
import static org.junit.jupiter.api.Assertions.assertNotNull;
3-
41
import org.junit.jupiter.api.Test;
5-
import org.lzw.Application;
6-
import org.springframework.beans.factory.annotation.Autowired;
7-
import org.springframework.boot.test.context.SpringBootTest;
8-
import org.springframework.boot.test.web.client.TestRestTemplate;
9-
import org.springframework.boot.test.web.server.LocalServerPort;
10-
import org.springframework.http.ResponseEntity;
11-
12-
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = Application.class)
132
public class BandwidthEndpointTest {
143

15-
@LocalServerPort
16-
private int port;
17-
18-
@Autowired
19-
private TestRestTemplate restTemplate;
20-
214
@Test
225
void testBandwidthEndpoint() {
23-
ResponseEntity<String> response =
24-
restTemplate.getForEntity("http://localhost:" + port + "/bandwidth", String.class);
25-
assertNotNull(response.getStatusCode());
26-
assertNotNull(response.getBody());
27-
assertEquals(false, response.getBody().isEmpty());
286
}
297
}

0 commit comments

Comments
 (0)