//
// This file is part of the Fuel Java client library.
//
// Copyright (c) 2013, 2014, 2015, ExactTarget, Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// * Neither the name of ExactTarget, Inc. nor the names of its
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//

package com.exacttarget.fuelsdk;

import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ETConfigurationTest {
    private static ETConfiguration configuration = null;
    private static String clientId = null;
    private static String clientSecret = null;
    private static String endpoint = null;
    private static String authEndpoint = null;
    private static String soapEndpoint = null;

    @BeforeClass
    public static void setUpBeforeClass()
        throws ETSdkException
    {
//        Assume.assumeNotNull(ETConfigurationTest.class
//                .getResource("/fuelsdk-test.properties"));
        configuration = new ETConfiguration("fuelsdk.properties");
    }

    @Test
    public void _01_TestGetClientId()
        throws ETSdkException
    {
        clientId = configuration.get("clientId");
        assertNotNull(clientId);
    }

    @Test
    public void _02_TestGetClientIdDeprecated()
        throws ETSdkException
    {
        @SuppressWarnings("deprecation")
        String s = configuration.get("clientId");//getClientId();
        assertEquals(clientId, s);
    }

    @Test
    public void _03_TestGetClientSecret()
        throws ETSdkException
    {
        clientSecret = configuration.get("clientSecret");
        assertNotNull(clientSecret);
    }

    @Test
    public void _04_TestGetClientSecretDeprecated()
        throws ETSdkException
    {
        @SuppressWarnings("deprecation")
        String s = configuration.get("clientSecret");//getClientSecret();
        assertEquals(clientSecret, s);
    }

    @Test
    public void _05_TestGetEndpoint()
        throws ETSdkException
    {
        endpoint = configuration.get("endpoint");
    }

    @Test
    public void _06_TestGetEndpointDeprecated()
        throws ETSdkException
    {
        @SuppressWarnings("deprecation")
        String s = configuration.get("endpoint");//getEndpoint();
        assertEquals(endpoint, s);
    }

    @Test
    public void _07_TestGetAuthEndpoint()
        throws ETSdkException
    {
        authEndpoint = configuration.get("authEndpoint");
    }

    @Test
    public void _08_TestGetAuthEndpointDeprecated()
        throws ETSdkException
    {
        @SuppressWarnings("deprecation")
        String s = configuration.get("authEndpoint");//getAuthEndpoint();
        assertEquals(authEndpoint, s);
    }

    @Test
    public void _09_TestGetSoapEndpoint()
        throws ETSdkException
    {
        soapEndpoint = configuration.get("soapEndpoint");
    }

    @Test
    public void _10_TestGetSoapEndpointDeprecated()
        throws ETSdkException
    {
        @SuppressWarnings("deprecation")
        String s = configuration.get("soapEndpoint");//getSoapEndpoint();
        assertEquals(soapEndpoint, s);
    }
    
    @Test
    public void _11_TestCreateConfig()
        throws ETSdkException
    {
        ETConfiguration config = new ETConfiguration();
        config.set("clientId", "eooqap5vfm9vjonc5uw5iavg");
        config.set("clientSecret", "VZVCdjRjlW52BvDK5PTTjSGN");
        config.set("authEndpoint", "https://auth-qa.exacttargetapis.com");

        ETClient client = new ETClient(config);
        assertNotNull(client);
    }    
    
}

@@ -4639,446 +4639,8 @@
    %7D
-%0A    %0A    @Test%0A    public void _11_TestCreateConfig()%0A        throws ETSdkException%0A    %7B%0A        ETConfiguration config = new ETConfiguration();%0A        config.set(%22clientId%22, %22eooqap5vfm9vjonc5uw5iavg%22);%0A        config.set(%22clientSecret%22, %22VZVCdjRjlW52BvDK5PTTjSGN%22);%0A        config.set(%22authEndpoint%22, %22https://auth-qa.exacttargetapis.com%22);%0A%0A        ETClient client = new ETClient(config);%0A        assertNotNull(client);%0A    %7D    %0A  
   %0A%7D

Update ETConfigurationTest.java