// Path: client/src/main/java/com/shopzilla/api/client/helper/CredentialFactory.java
// public class CredentialFactory {
//     private String publisherId;
//     private String publisherApiKey;
// 
//     public CredentialFactory() {
//         String id = StringUtils.isNotBlank(System.getenv("PUBLISHER_ID")) ? System.getenv("PUBLISHER_ID") : System.getProperty("PUBLISHER_ID");
//         String key = StringUtils.isNotBlank(System.getenv("PUBLISHER_API_KEY")) ? System.getenv("PUBLISHER_API_KEY") : System.getProperty("PUBLISHER_API_KEY");
// 
//         if (key != null && id != null) {
//             this.publisherId = id;
//             this.publisherApiKey = key;
//         } else {
//             throw new IllegalArgumentException("No API credentials were provided! "+
//                                                "Please set PUBLISHER_ID and PUBLISHER_API_KEY ");
//         }
//     }
// 
//     public String getPublisherId() {
//         return publisherId;
//     }
// 
//     public String getPublisherApiKey() {
//         return publisherApiKey;
//     }
// }


import static junit.framework.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.shopzilla.api.client.helper.CredentialFactory;
import com.shopzilla.services.catalog.TaxonomyResponse;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.shopzilla.api.client;




/**
 *
 * @author sachar
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring/applicationContext-client-test.xml"})
public class TaxonomyClientIntegrationTest {
    @Autowired
    TaxonomyClient client;

    @Autowired
// Path: client/src/main/java/com/shopzilla/api/client/helper/CredentialFactory.java
// public class CredentialFactory {
//     private String publisherId;
//     private String publisherApiKey;
// 
//     public CredentialFactory() {
//         String id = StringUtils.isNotBlank(System.getenv("PUBLISHER_ID")) ? System.getenv("PUBLISHER_ID") : System.getProperty("PUBLISHER_ID");
//         String key = StringUtils.isNotBlank(System.getenv("PUBLISHER_API_KEY")) ? System.getenv("PUBLISHER_API_KEY") : System.getProperty("PUBLISHER_API_KEY");
// 
//         if (key != null && id != null) {
//             this.publisherId = id;
//             this.publisherApiKey = key;
//         } else {
//             throw new IllegalArgumentException("No API credentials were provided! "+
//                                                "Please set PUBLISHER_ID and PUBLISHER_API_KEY ");
//         }
//     }
// 
//     public String getPublisherId() {
//         return publisherId;
//     }
// 
//     public String getPublisherApiKey() {
//         return publisherApiKey;
//     }
// }


// Path: client/src/test/java/com/shopzilla/api/client/TaxonomyClientIntegrationTest.java
import static junit.framework.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.shopzilla.api.client.helper.CredentialFactory;
import com.shopzilla.services.catalog.TaxonomyResponse;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.shopzilla.api.client;




/**
 *
 * @author sachar
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring/applicationContext-client-test.xml"})
public class TaxonomyClientIntegrationTest {
    @Autowired
    TaxonomyClient client;

    @Autowired
    CredentialFactory credentialFactory;