@Test
  public void testLogin() {
    GetAllPermissionsRequestModel getAllPermissionsRequestModel =
        new GetAllPermissionsRequestModel();

    Send.send(headers, "", url, requestMethod);
  }
Пример #2
0
  @Test
  public void testAddUser() {
    AddUserRequestModel addUserRequestModel = new AddUserRequestModel();
    addUserRequestModel.name = getUserName();
    addUserRequestModel.email = addUserRequestModel.name + Constant.EMAIL;
    addUserRequestModel.username = addUserRequestModel.name;
    addUserRequestModel.password = addUserRequestModel.name;

    String response = Send.send(headers, getAsString(addUserRequestModel), url, requestMethod);
    System.out.println(response);
  }