@Test(expected = IllegalArgumentException.class) public void testSaveIllegalMethod() { final Map<String, String> resourceParams = new HashMap<>(); resourceParams.put(RESOURCE_PARAM_USER_ID, RESOURCE_VALUE_USER_ID); restResource.saveObject(Request.Method.DELETE, resourceParams, new DummyListener<>(), null, new Object()); }
public Request<T> saveObject(@SaveMethod final int method, @Nullable final Map<String, String> resourceParams, @Nullable final Listener<T> listener, @Nullable final ErrorListener errListener, @NonNull final T object) { return saveObject(method, resourceParams, null, listener, errListener, object); }
RestResource { public Request<T> saveObject(@SaveMethod final int method, @Nullable final Map<String, String> resourceParams, @Nullable final Listener<T> listener, @Nullable final ErrorListener errListener, @NonNull final T object) { return saveObject(method, resourceParams, null, listener, errListener, object); } }
RestResource { public Request<T> saveObject(@SaveMethod final int method, @Nullable final Map<String, String> resourceParams, @Nullable final Listener<T> listener, @Nullable final ErrorListener errListener, @NonNull final T object) { return saveObject(method, resourceParams, null, listener, errListener, object); } RestResource(@NonNull final String resource, @NonNull final Class<T> clazz,
					@NonNull final Gson gson); }
RestResource { public Request<T> saveObject(@SaveMethod final int method, @Nullable final Map<String, String> resourceParams, @Nullable final Listener<T> listener, @Nullable final ErrorListener errListener, @NonNull final T object) { return saveObject(method, resourceParams, null, listener, errListener, object); } RestResource(@NonNull final String resource, @NonNull final Class<T> clazz,
					@NonNull final Gson gson); Request<T> getObject(@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener); Request<T> getObject(@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<T> getObject(@NonNull final Map<String, String> resourceParams,
					@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener); Request<T> getObject(@NonNull final Map<String, String> resourceParams,
					@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<List<T>> listener,
					@Nullable final ErrorListener errListener); Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<List<T>> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,
						@Nullable final Listener<List<T>> listener,
						@Nullable final ErrorListener errListener); Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,
					@Nullable final Listener<List<T>> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<T> saveObject(@SaveMethod final int method,
						@Nullable final Map<String, String> resourceParams,
						@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,
						@NonNull final T object); Request<T> saveObject(@SaveMethod final int method,
					@Nullable final Map<String, String> resourceParams,
					@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener,
					@NonNull final T object); Request<T> saveObject(@SaveMethod final int method,
					@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener,
					@NonNull final T object); Request<T> saveObject(@SaveMethod final int method,
						@Nullable final Map<String, String> resourceParams,
						@Nullable final Map<String, String> queryParams,
						@Nullable final Listener<T> listener,
						@Nullable final ErrorListener errListener,
						@Nullable final CancelListener cancelListener, @NonNull final T object); Request<T> deleteObject(@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener); Request<T> deleteObject(@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<T> deleteObject(@Nullable final Map<String, String> resourceParams,
						@Nullable final Listener<T> listener,
						@Nullable final ErrorListener errListener); Request<T> deleteObject(@Nullable final Map<String, String> resourceParams,
					@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); void setElementsKey(@NonNull final String elementsKey); @Override String toString(); }
RestResource { public Request<T> saveObject(@SaveMethod final int method, @Nullable final Map<String, String> resourceParams, @Nullable final Listener<T> listener, @Nullable final ErrorListener errListener, @NonNull final T object) { return saveObject(method, resourceParams, null, listener, errListener, object); } RestResource(@NonNull final String resource, @NonNull final Class<T> clazz,
					@NonNull final Gson gson); Request<T> getObject(@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener); Request<T> getObject(@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<T> getObject(@NonNull final Map<String, String> resourceParams,
					@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener); Request<T> getObject(@NonNull final Map<String, String> resourceParams,
					@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<List<T>> listener,
					@Nullable final ErrorListener errListener); Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<List<T>> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,
						@Nullable final Listener<List<T>> listener,
						@Nullable final ErrorListener errListener); Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,
					@Nullable final Listener<List<T>> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<T> saveObject(@SaveMethod final int method,
						@Nullable final Map<String, String> resourceParams,
						@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,
						@NonNull final T object); Request<T> saveObject(@SaveMethod final int method,
					@Nullable final Map<String, String> resourceParams,
					@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener,
					@NonNull final T object); Request<T> saveObject(@SaveMethod final int method,
					@Nullable final Map<String, String> resourceParams,
					@Nullable final Map<String, String> queryParams,
					@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener,
					@NonNull final T object); Request<T> saveObject(@SaveMethod final int method,
						@Nullable final Map<String, String> resourceParams,
						@Nullable final Map<String, String> queryParams,
						@Nullable final Listener<T> listener,
						@Nullable final ErrorListener errListener,
						@Nullable final CancelListener cancelListener, @NonNull final T object); Request<T> deleteObject(@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener); Request<T> deleteObject(@Nullable final Listener<T> listener,
					@Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); Request<T> deleteObject(@Nullable final Map<String, String> resourceParams,
						@Nullable final Listener<T> listener,
						@Nullable final ErrorListener errListener); Request<T> deleteObject(@Nullable final Map<String, String> resourceParams,
					@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,
					@Nullable final CancelListener cancelListener); void setElementsKey(@NonNull final String elementsKey); @Override String toString();  }