私はjaywayを使ってテストケースを書いています。接続拒否エラーが発生しています。
@RunWith(OrderitoJUnitRunner.class)
public class TestOrderService extends TestCaseSrs {
@Test
public void testFindUsingGroovyClosure() throws IOException
{
RestAssured.baseURI = "http://localhost";
String responseString = "Some Json";
String json = get("/test/Order/").asString();
JsonPath jp = new JsonPath(json);
String ssn = jp.get("customer.personId");
assertEquals("123456", ssn);
}
}
エラー:
java.net.ConnectException: Connection refused: connect
Connect to localhost:8080 timed out. Connection will be retried using another IP address
私は何か間違ったことをしていますか?