Получение ошибки Будьте уверены: исключение в потоке "main" java .lang.NoClassDefFoundError: org / apache / http / entity / mime / HttpMultipartMode - PullRequest
0 голосов
/ 20 марта 2020

Код: пакет restAPI;

import io.restassured.RestAssured;
import static io.restassured.RestAssured.*;

public class Basics {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
//validate Add Api
        RestAssured.baseURI="https:**********************";
        given().queryParam("key","qaclick123").headers("Content-Type", "application/json")
        .body("{\r\n" + 
                "  \"location\": {\r\n" + 
                "    \"lat\":-10.025,\r\n" + 
                "    \"lng\": 20.2518\r\n" + 
                "  },\r\n" + 
                "  \"accuracy\": 50,\r\n" + 
                "  \"name\": \"*********** Academy\",\r\n" + 
                "  \"phone_number\": \"(+91) 983 893 3937\",\r\n" + 
                "  \"address\": \"29, side layout, cohen 09\",\r\n" + 
                "  \"types\": [\r\n" + 
                "    \"shoe park\",\r\n" + 
                "    \"shop\"\r\n" + 
                "  ],\r\n" + 
                "  \"website\": \"http://*******************[enter image description here][1].com\",\r\n" + 
                "  \"language\": \"French-IN\"\r\n" + 
                "}").when().post("/maps/api/place/add/json").then().assertThat().statusCode(200);
    }
}
...