From 433edefc310259a201269d749ceb9634f9f532b5 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Wed, 4 Jan 2012 17:12:18 -0800 Subject: [PATCH] deprecated testMethod --- .../jclouds/glesys/features/BaseGleSYSAsyncClientTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sandbox-providers/glesys/src/test/java/org/jclouds/glesys/features/BaseGleSYSAsyncClientTest.java b/sandbox-providers/glesys/src/test/java/org/jclouds/glesys/features/BaseGleSYSAsyncClientTest.java index 5c315f4504..26e799aac4 100644 --- a/sandbox-providers/glesys/src/test/java/org/jclouds/glesys/features/BaseGleSYSAsyncClientTest.java +++ b/sandbox-providers/glesys/src/test/java/org/jclouds/glesys/features/BaseGleSYSAsyncClientTest.java @@ -62,7 +62,8 @@ public abstract class BaseGleSYSAsyncClientTest extends RestClientTest { Properties props = new Properties(); return new RestContextFactory().createContextSpec("glesys", "username", "apiKey", props); } - + + @Deprecated protected Map.Entry newEntry(String key, Object value) { return Maps.immutableEntry(key, value.toString()); } @@ -77,12 +78,15 @@ public abstract class BaseGleSYSAsyncClientTest extends RestClientTest { * @param exceptionParser the class of exception handler expected * @param args either Map.Entry or BaseHttpRequestOptions that make up the arguments to the method */ + //TODO: kill this and related logic and transition to BaseRestClientExpectTest + @Deprecated protected void testMethod(String localMethod, String remoteCall, String httpMethod, boolean expectResponse, Class exceptionParser, Object... args) throws Exception { testMethod(localMethod, remoteCall, httpMethod, expectResponse, ParseFirstJsonValueNamed.class, exceptionParser, args); } + @Deprecated @SuppressWarnings("unchecked") protected void testMethod(String localMethod, String remoteCall, String httpMethod, boolean expectResponse, Class responseParser, Class exceptionParser, Object... args) throws Exception { List argStrings = new ArrayList();