// Path: core/src/main/java/com/github/moronicgeek/swagger/cloud/model/SwaggerCloudAdminProperties.java
// @ConfigurationProperties("swagger.cloud.boot.admin")
// public class SwaggerCloudAdminProperties {
//     /**
//      * The admin server url to register at
//      */
//     private String url;
// 
//     /**
//      * The admin rest-apis path.
//      */
//     private String apiPath = "/swaggercloud/register/";
// 
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public String getApiPath() {
//         return apiPath;
//     }
// 
//     public void setApiPath(String apiPath) {
//         this.apiPath = apiPath;
//     }
// 
// 
//     @Override
//     public String toString() {
//         return "SwaggerCloudAdminProperties{" +
//                 "url='" + url + '\'' +
//                 ", apiPath='" + apiPath + '\'' +
//                 '}';
//     }
// }
// 
// 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.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.client.RestTemplate;
import com.github.moronicgeek.swagger.cloud.model.SwaggerCloudAdminProperties;
import com.github.moronicgeek.swagger.cloud.model.SwaggerCloudClientProperties;
package com.github.moronicgeek.swagger.cloud.client;


/**
 * Created by muhammedpatel on 2016/08/14.
 */
@RunWith(SpringJUnit4ClassRunner.class)
public class ApplicationRegistrationServiceTest {


    @InjectMocks

    ApplicationRegistrationService service;
    @Mock
    private SwaggerCloudAdminProperties adminProperties;
// Path: core/src/main/java/com/github/moronicgeek/swagger/cloud/model/SwaggerCloudAdminProperties.java
// @ConfigurationProperties("swagger.cloud.boot.admin")
// public class SwaggerCloudAdminProperties {
//     /**
//      * The admin server url to register at
//      */
//     private String url;
// 
//     /**
//      * The admin rest-apis path.
//      */
//     private String apiPath = "/swaggercloud/register/";
// 
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public String getApiPath() {
//         return apiPath;
//     }
// 
//     public void setApiPath(String apiPath) {
//         this.apiPath = apiPath;
//     }
// 
// 
//     @Override
//     public String toString() {
//         return "SwaggerCloudAdminProperties{" +
//                 "url='" + url + '\'' +
//                 ", apiPath='" + apiPath + '\'' +
//                 '}';
//     }
// }
// 
// 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/ApplicationRegistrationServiceTest.java
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.client.RestTemplate;
import com.github.moronicgeek.swagger.cloud.model.SwaggerCloudAdminProperties;
import com.github.moronicgeek.swagger.cloud.model.SwaggerCloudClientProperties;

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


/**
 * Created by muhammedpatel on 2016/08/14.
 */
@RunWith(SpringJUnit4ClassRunner.class)
public class ApplicationRegistrationServiceTest {


    @InjectMocks

    ApplicationRegistrationService service;
    @Mock
    private SwaggerCloudAdminProperties adminProperties;
    @Mock