deprecated testMethod

This commit is contained in:
Adrian Cole 2012-01-04 17:12:18 -08:00
parent f1135db892
commit 433edefc31
1 changed files with 5 additions and 1 deletions

View File

@ -63,6 +63,7 @@ public abstract class BaseGleSYSAsyncClientTest<T> extends RestClientTest<T> {
return new RestContextFactory().createContextSpec("glesys", "username", "apiKey", props); return new RestContextFactory().createContextSpec("glesys", "username", "apiKey", props);
} }
@Deprecated
protected Map.Entry<String, String> newEntry(String key, Object value) { protected Map.Entry<String, String> newEntry(String key, Object value) {
return Maps.immutableEntry(key, value.toString()); return Maps.immutableEntry(key, value.toString());
} }
@ -77,12 +78,15 @@ public abstract class BaseGleSYSAsyncClientTest<T> extends RestClientTest<T> {
* @param exceptionParser the class of exception handler expected * @param exceptionParser the class of exception handler expected
* @param args either Map.Entry or BaseHttpRequestOptions that make up the arguments to the method * @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<GleSYSClient>
@Deprecated
protected void testMethod(String localMethod, String remoteCall, String httpMethod, boolean expectResponse, protected void testMethod(String localMethod, String remoteCall, String httpMethod, boolean expectResponse,
Class<?> exceptionParser, Object... args) throws Exception { Class<?> exceptionParser, Object... args) throws Exception {
testMethod(localMethod, remoteCall, httpMethod, expectResponse, ParseFirstJsonValueNamed.class, exceptionParser, testMethod(localMethod, remoteCall, httpMethod, expectResponse, ParseFirstJsonValueNamed.class, exceptionParser,
args); args);
} }
@Deprecated
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
protected void testMethod(String localMethod, String remoteCall, String httpMethod, boolean expectResponse, Class<?> responseParser, Class<?> exceptionParser, Object... args) throws Exception { protected void testMethod(String localMethod, String remoteCall, String httpMethod, boolean expectResponse, Class<?> responseParser, Class<?> exceptionParser, Object... args) throws Exception {
List<String> argStrings = new ArrayList<String>(); List<String> argStrings = new ArrayList<String>();