/*
 * Swagger of Opencellsoft Api
 * @#Introduction
 *
 * The version of the OpenAPI document: 7.3.1-SNAPSHOT
 * Contact: contact@opencellsoft.fr
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.api;

import org.openapitools.client.ApiException;
import org.openapitools.client.model.ActionStatus;
import org.openapitools.client.model.GetUserResponse;
import org.openapitools.client.model.PagingAndFiltering;
import org.openapitools.client.model.UserDto;
import org.openapitools.client.model.UsersDto;
import org.junit.Test;
import org.junit.Ignore;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * API tests for UserApi
 */
@Ignore
public class UserApiTest {

    private final UserApi api = new UserApi();

    
    /**
     *  Deletes a user in keycloak and core given a username. 
     *
     *  Deletes a user in keycloak and core given a username. 
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void dELETEUserExternalUsername1Test() throws ApiException {
        String username = null;
        ActionStatus response = api.dELETEUserExternalUsername1(username);

        // TODO: test validations
    }
    
    /**
     *  Remove user with a given username.  
     *
     *  Remove user with a given username.  
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void dELETEUserUsername1Test() throws ApiException {
        String username = null;
        ActionStatus response = api.dELETEUserUsername1(username);

        // TODO: test validations
    }
    
    /**
     *  Get version of application  
     *
     *  Get version of application  
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void gETIBaseVersion24Test() throws ApiException {
        ActionStatus response = api.gETIBaseVersion24();

        // TODO: test validations
    }
    
    /**
     *  List users matching a given criteria.  
     *
     *  List users matching a given criteria.  
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void gETUserList1Test() throws ApiException {
        String query = null;
        String fields = null;
        Integer offset = null;
        Integer limit = null;
        String sortBy = null;
        String sortOrder = null;
        UsersDto response = api.gETUserList1(query, fields, offset, limit, sortBy, sortOrder);

        // TODO: test validations
    }
    
    /**
     *  Search user with a given username.  
     *
     *  Search user with a given username.  
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void gETUserSearch1Test() throws ApiException {
        String username = null;
        GetUserResponse response = api.gETUserSearch1(username);

        // TODO: test validations
    }
    
    /**
     *  Create user.  
     *
     *  Create user.  
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void pOSTUserCreate1Test() throws ApiException {
        UserDto userDto = null;
        ActionStatus response = api.pOSTUserCreate1(userDto);

        // TODO: test validations
    }
    
    /**
     *  Create or update user based on the username.  
     *
     *  Create or update user based on the username.  
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void pOSTUserCreateOrUpdate1Test() throws ApiException {
        UserDto userDto = null;
        ActionStatus response = api.pOSTUserCreateOrUpdate1(userDto);

        // TODO: test validations
    }
    
    /**
     *  Creates a user in keycloak and core. 
     *
     *  Creates a user in keycloak and core. 
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void pOSTUserExternal1Test() throws ApiException {
        UserDto userDto = null;
        ActionStatus response = api.pOSTUserExternal1(userDto);

        // TODO: test validations
    }
    
    /**
     *  List users matching a given criteria.  
     *
     *  List users matching a given criteria.  
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void pOSTUserList1Test() throws ApiException {
        PagingAndFiltering pagingAndFiltering = null;
        UsersDto response = api.pOSTUserList1(pagingAndFiltering);

        // TODO: test validations
    }
    
    /**
     *  Updates a user in keycloak and core given a username. 
     *
     *  Updates a user in keycloak and core given a username. 
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void pUTUserExternal1Test() throws ApiException {
        UserDto userDto = null;
        ActionStatus response = api.pUTUserExternal1(userDto);

        // TODO: test validations
    }
    
    /**
     *  Update user.  
     *
     *  Update user.  
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void pUTUserUpdate1Test() throws ApiException {
        UserDto userDto = null;
        ActionStatus response = api.pUTUserUpdate1(userDto);

        // TODO: test validations
    }
    
    /**
     * 
     *
     * 
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void user77Test() throws ApiException {
        ActionStatus response = api.user77();

        // TODO: test validations
    }
    
}
