// Path: common-utils/src/main/java/com/stnetix/ariaddna/commonutils/dto/CloudCredentialsDTO.java
// public class CloudCredentialsDTO {
// 
//     public CloudCredentialsDTO() {
//         this.uuid = UUID.randomUUID().toString();
//     }
// 
//     public CloudCredentialsDTO(String clientId, String clientSecret) {
//         this.clientId = clientId;
//         this.clientSecret = clientSecret;
//     }
// 
//     private Long id;
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     private String uuid;
// 
//     public String getUuid() {
//         return uuid;
//     }
// 
//     public void setUuid(String uuid) {
//         this.uuid = uuid;
//     }
// 
//     private String clientId;
// 
//     public String getClientId() {
//         return clientId;
//     }
// 
//     public void setClientId(String clientId) {
//         this.clientId = clientId;
//     }
// 
//     private String clientSecret;
// 
//     public String getClientSecret() {
//         return clientSecret;
//     }
// 
//     public void setClientSecret(String clientSecret) {
//         this.clientSecret = clientSecret;
//     }
// }


import java.util.UUID;
import org.junit.Assert;
import org.junit.Test;
import org.mapstruct.factory.Mappers;
import com.stnetix.ariaddna.commonutils.dto.CloudCredentialsDTO;
import com.stnetix.ariaddna.persistence.entities.CloudCredentials;
/*
 * Copyright (c) 2017 stnetix.com. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.  You may obtain a copy of
 * the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed
 * under the License is distributed on an "AS IS" BASIS, without warranties or
 * conditions of any kind, EITHER EXPRESS OR IMPLIED.  See the License for the
 * specific language governing permissions and limitations under the License.
 */

package com.stnetix.ariaddna.persistence.transformers;




public class CloudCredentialsTransformerTest {
    CloudCredentialsTransformer transformer = Mappers.getMapper(CloudCredentialsTransformer.class);

    @Test
    public void cloudCredentialsEntityToDTO() {
        CloudCredentials cloudCredentials = new CloudCredentials();
        cloudCredentials.setId(423L);
        cloudCredentials.setClientId(UUID.randomUUID().toString());
        cloudCredentials.setClientSecret(UUID.randomUUID().toString());

// Path: common-utils/src/main/java/com/stnetix/ariaddna/commonutils/dto/CloudCredentialsDTO.java
// public class CloudCredentialsDTO {
// 
//     public CloudCredentialsDTO() {
//         this.uuid = UUID.randomUUID().toString();
//     }
// 
//     public CloudCredentialsDTO(String clientId, String clientSecret) {
//         this.clientId = clientId;
//         this.clientSecret = clientSecret;
//     }
// 
//     private Long id;
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     private String uuid;
// 
//     public String getUuid() {
//         return uuid;
//     }
// 
//     public void setUuid(String uuid) {
//         this.uuid = uuid;
//     }
// 
//     private String clientId;
// 
//     public String getClientId() {
//         return clientId;
//     }
// 
//     public void setClientId(String clientId) {
//         this.clientId = clientId;
//     }
// 
//     private String clientSecret;
// 
//     public String getClientSecret() {
//         return clientSecret;
//     }
// 
//     public void setClientSecret(String clientSecret) {
//         this.clientSecret = clientSecret;
//     }
// }


// Path: storage-service/src/test/java/com/stnetix/ariaddna/persistence/transformers/CloudCredentialsTransformerTest.java
import java.util.UUID;
import org.junit.Assert;
import org.junit.Test;
import org.mapstruct.factory.Mappers;
import com.stnetix.ariaddna.commonutils.dto.CloudCredentialsDTO;
import com.stnetix.ariaddna.persistence.entities.CloudCredentials;

/*
 * Copyright (c) 2017 stnetix.com. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.  You may obtain a copy of
 * the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed
 * under the License is distributed on an "AS IS" BASIS, without warranties or
 * conditions of any kind, EITHER EXPRESS OR IMPLIED.  See the License for the
 * specific language governing permissions and limitations under the License.
 */

package com.stnetix.ariaddna.persistence.transformers;




public class CloudCredentialsTransformerTest {
    CloudCredentialsTransformer transformer = Mappers.getMapper(CloudCredentialsTransformer.class);

    @Test
    public void cloudCredentialsEntityToDTO() {
        CloudCredentials cloudCredentials = new CloudCredentials();
        cloudCredentials.setId(423L);
        cloudCredentials.setClientId(UUID.randomUUID().toString());
        cloudCredentials.setClientSecret(UUID.randomUUID().toString());

        CloudCredentialsDTO cloudCredentialsDTO = transformer