// Copyright 2014 Boundary, 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.boundary.metrics.vmware.poller;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

public class MetricCreatorTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Ignore
	@Test
	public void testCreateMetricDefinitions() {
		
		fail("Not yet implemented");
	}

}

@@ -663,16 +663,81 @@
 ssert.*;
+%0Aimport static org.junit.Assume.assumeTrue;%0A%0Aimport java.io.File;
 %0A%0Aimport
@@ -891,113 +891,380 @@
 t;%0A%0A
-public class MetricCreatorTest %7B%0A%0A%09@BeforeClass%0A%09public static void setUpBeforeClass() throws Exception %7B
+import com.boundary.metrics.vmware.VMWareTestUtils;%0Aimport com.boundary.metrics.vmware.client.metrics.MetricClient;%0A%0Apublic class MetricCreatorTest %7B%0A%0A%09@BeforeClass%0A%09public static void setUpBeforeClass() throws Exception %7B%0A%09%09File propertiesFile = new File(%22src/test/resources/%22 + VMWareTestUtils.DEFAULT_METRIC_CLIENT_CONFIGURATION);%0A%09%09assumeTrue(propertiesFile.exists());
 %0A%09%7D%0A
@@ -1453,17 +1453,8 @@
 %09%7D%0A%0A
-%09@Ignore%0A
 %09@Te
@@ -1503,41 +1503,130 @@
 s() 
-%7B%0A%09%09%0A%09%09fail(%22Not yet implemented%22
+throws Exception %7B%0A%09%09MetricClient client = VMWareTestUtils.getMetricClient();%0A%09%09assertNotNull(%22Check metric client%22,client
 );%0A%09

Add test for creation of a metric client