// Path: src/test/java/com/proofpoint/cloudmanagement/service/inventoryclient/MockInventoryServer.java
// public static class MockInventoryServerModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         binder.bind(MockInventoryServer.class).in(Scopes.SINGLETON);
//     }
// }


import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.proofpoint.cloudmanagement.service.inventoryclient.MockInventoryServer.MockInventoryServerModule;
import com.proofpoint.configuration.ConfigurationFactory;
import com.proofpoint.configuration.ConfigurationModule;
import com.proofpoint.http.server.testing.TestingHttpServer;
import com.proofpoint.http.server.testing.TestingHttpServerModule;
import com.proofpoint.jaxrs.JaxrsModule;
import com.proofpoint.json.JsonModule;
import com.proofpoint.node.testing.TestingNodeModule;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import javax.ws.rs.core.UriBuilder;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
/*
 * Copyright 2010 Proofpoint, Inc.
 *
 * 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.proofpoint.cloudmanagement.service.inventoryclient;



public class TestClient
{
    private InventoryClient client;
    private TestingHttpServer server;
    private MockInventoryServer inventoryServer;

    private static final String INVENTORY_USER = "readonly";
    private static final String INVENTORY_PASSWORD = "readonly";

    @BeforeMethod
    public void setup()
            throws Exception
    {
        Injector inventoryServerInjector = Guice.createInjector(
                new TestingHttpServerModule(),
                new TestingNodeModule(),
                new JaxrsModule(),
                new JsonModule(),
// Path: src/test/java/com/proofpoint/cloudmanagement/service/inventoryclient/MockInventoryServer.java
// public static class MockInventoryServerModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         binder.bind(MockInventoryServer.class).in(Scopes.SINGLETON);
//     }
// }


// Path: src/test/java/com/proofpoint/cloudmanagement/service/inventoryclient/TestClient.java
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.proofpoint.cloudmanagement.service.inventoryclient.MockInventoryServer.MockInventoryServerModule;
import com.proofpoint.configuration.ConfigurationFactory;
import com.proofpoint.configuration.ConfigurationModule;
import com.proofpoint.http.server.testing.TestingHttpServer;
import com.proofpoint.http.server.testing.TestingHttpServerModule;
import com.proofpoint.jaxrs.JaxrsModule;
import com.proofpoint.json.JsonModule;
import com.proofpoint.node.testing.TestingNodeModule;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import javax.ws.rs.core.UriBuilder;
import java.util.Map;
import java.util.Set;
import java.util.UUID;

/*
 * Copyright 2010 Proofpoint, Inc.
 *
 * 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.proofpoint.cloudmanagement.service.inventoryclient;



public class TestClient
{
    private InventoryClient client;
    private TestingHttpServer server;
    private MockInventoryServer inventoryServer;

    private static final String INVENTORY_USER = "readonly";
    private static final String INVENTORY_PASSWORD = "readonly";

    @BeforeMethod
    public void setup()
            throws Exception
    {
        Injector inventoryServerInjector = Guice.createInjector(
                new TestingHttpServerModule(),
                new TestingNodeModule(),
                new JaxrsModule(),
                new JsonModule(),
                new MockInventoryServerModule()