5
Rest API'mi test etmek için Rest-Assured kullanıyorum. webservice i json olarak benim Kullanıcılar olsunİstenmeyen istekleriniz çalışmıyor
curl -u "admin:admin" http://localhost:8888/users/
çalışan beri, ok çalışıyor gözüküyor. Dinlenme-Emin
RestAssured.authentication = basic("admin", "admin");
expect().statusCode(200).when().get("http://localhost:8888/users/");
ile basit isteği çalışırken
sonra, bana bu ne olabilir çıktı
Exception in thread "main" org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8888 refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
…
verir?