// Path: core/src/main/java/com/github/moronicgeek/swagger/cloud/model/SwaggerCloudClientProperties.java
// @ConfigurationProperties("swagger.cloud.boot.client")
// public class SwaggerCloudClientProperties {
//     private String adminServerUrl = "";
//     private String swaggerUrl = "";
//     private String name = "";
//     private String groupId = "";
//     //TODO We should probably derive this from the swagger json file and perhaps some other data. Think !!!
//     private String description  ="";
// 
//     @Autowired
//     @JsonIgnore
//     private ServerProperties server;
// 
//     private Integer serverPort;
// 
// 
//     public String getGroupId() {
//         return groupId;
//     }
// 
//     public void setGroupId(String groupId) {
//         this.groupId = groupId;
//     }
// 
//     public String getSwaggerUrl() {
//         return swaggerUrl;
//     }
// 
//     public void setSwaggerUrl(String swaggerUrl) {
//         this.swaggerUrl = swaggerUrl;
//     }
// 
// 
//     public String getAdminServerUrl() {
//         return adminServerUrl;
//     }
// 
//     public void setAdminServerUrl(String adminServerUrl) {
//         this.adminServerUrl = adminServerUrl;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public ServerProperties getServer() {
//         return server;
//     }
// 
//     public void setServer(ServerProperties server) {
//         this.server = server;
//     }
// 
//     public Integer getServerPort() {
//         return serverPort;
//     }
// 
//     public void setServerPort(Integer serverPort) {
//         this.serverPort = serverPort;
//     }
// 
//     @Override
//     public String toString() {
//         return "SwaggerCloudClientProperties{" +
//                 "adminServerUrl='" + adminServerUrl + '\'' +
//                 ", swaggerUrl='" + swaggerUrl + '\'' +
//                 ", name='" + name + '\'' +
//                 ", groupId='" + groupId + '\'' +
//                 ", description='" + description + '\'' +
//                 ", server=" + server +
//                 ", serverPort=" + serverPort +
//                 '}';
//     }
// }


import org.junit.Assert;
import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;
import org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration;
import org.springframework.boot.test.util.EnvironmentTestUtils;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import com.github.moronicgeek.swagger.cloud.model.SwaggerCloudClientProperties;
import static org.hamcrest.Matchers.is;
package com.github.moronicgeek.swagger.cloud.client;



public class ConfigurationTest {

    private AnnotationConfigWebApplicationContext context;


    public void close() {
        if (this.context != null) {
            this.context.close();
        }
    }


    public void testSwagerCloudAdminProperties(){

        load("swagger.cloud.boot.client.name:IchiServerAPI"," swagger.cloud.boot.client.swagger-url:http://localhost:8081/swagger.json",
                "swagger.cloud.boot.client.groupId:za.co.moronicgeek.ichiserver");
// Path: core/src/main/java/com/github/moronicgeek/swagger/cloud/model/SwaggerCloudClientProperties.java
// @ConfigurationProperties("swagger.cloud.boot.client")
// public class SwaggerCloudClientProperties {
//     private String adminServerUrl = "";
//     private String swaggerUrl = "";
//     private String name = "";
//     private String groupId = "";
//     //TODO We should probably derive this from the swagger json file and perhaps some other data. Think !!!
//     private String description  ="";
// 
//     @Autowired
//     @JsonIgnore
//     private ServerProperties server;
// 
//     private Integer serverPort;
// 
// 
//     public String getGroupId() {
//         return groupId;
//     }
// 
//     public void setGroupId(String groupId) {
//         this.groupId = groupId;
//     }
// 
//     public String getSwaggerUrl() {
//         return swaggerUrl;
//     }
// 
//     public void setSwaggerUrl(String swaggerUrl) {
//         this.swaggerUrl = swaggerUrl;
//     }
// 
// 
//     public String getAdminServerUrl() {
//         return adminServerUrl;
//     }
// 
//     public void setAdminServerUrl(String adminServerUrl) {
//         this.adminServerUrl = adminServerUrl;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public ServerProperties getServer() {
//         return server;
//     }
// 
//     public void setServer(ServerProperties server) {
//         this.server = server;
//     }
// 
//     public Integer getServerPort() {
//         return serverPort;
//     }
// 
//     public void setServerPort(Integer serverPort) {
//         this.serverPort = serverPort;
//     }
// 
//     @Override
//     public String toString() {
//         return "SwaggerCloudClientProperties{" +
//                 "adminServerUrl='" + adminServerUrl + '\'' +
//                 ", swaggerUrl='" + swaggerUrl + '\'' +
//                 ", name='" + name + '\'' +
//                 ", groupId='" + groupId + '\'' +
//                 ", description='" + description + '\'' +
//                 ", server=" + server +
//                 ", serverPort=" + serverPort +
//                 '}';
//     }
// }


// Path: client/src/test/java/com/github/moronicgeek/swagger/cloud/client/ConfigurationTest.java
import org.junit.Assert;
import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;
import org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration;
import org.springframework.boot.test.util.EnvironmentTestUtils;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import com.github.moronicgeek.swagger.cloud.model.SwaggerCloudClientProperties;
import static org.hamcrest.Matchers.is;

package com.github.moronicgeek.swagger.cloud.client;



public class ConfigurationTest {

    private AnnotationConfigWebApplicationContext context;


    public void close() {
        if (this.context != null) {
            this.context.close();
        }
    }


    public void testSwagerCloudAdminProperties(){

        load("swagger.cloud.boot.client.name:IchiServerAPI"," swagger.cloud.boot.client.swagger-url:http://localhost:8081/swagger.json",
                "swagger.cloud.boot.client.groupId:za.co.moronicgeek.ichiserver");
        SwaggerCloudClientProperties clientProperties = new SwaggerCloudClientProperties();