Plugins#ListRequest: Remove parameter from all() method
The default value of all is false. Change the method so that calling it sets it to true, so instead of: api.list().all(true).get() the call is: api.list().all().get() Change-Id: I8ea0a81c5ef3f7074566ef916b3a843277749e7f
This commit is contained in:
@@ -23,7 +23,8 @@ import org.junit.Test;
|
||||
@NoHttpd
|
||||
public class PluginIT extends AbstractDaemonTest {
|
||||
@Test
|
||||
public void noPlugins() throws Exception {
|
||||
public void list() throws Exception {
|
||||
assertThat(gApi.plugins().list().get()).isEmpty();
|
||||
assertThat(gApi.plugins().list().all().get()).isEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,8 +40,8 @@ public interface Plugins {
|
||||
|
||||
public abstract SortedMap<String, PluginInfo> getAsMap() throws RestApiException;
|
||||
|
||||
public ListRequest all(boolean all) {
|
||||
this.all = all;
|
||||
public ListRequest all() {
|
||||
this.all = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user