Skip to content

Commit 7ab0056

Browse files
author
Varun Rathore
committed
revert last change
1 parent 9d9cf0d commit 7ab0056

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/java/com/google/firebase/remoteconfig/MockRemoteConfigClient.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,35 @@
2121
public class MockRemoteConfigClient implements FirebaseRemoteConfigClient{
2222

2323
private final Template resultTemplate;
24+
private final String resultServerTemplate;
2425
private final FirebaseRemoteConfigException exception;
2526
private final ListVersionsResponse listVersionsResponse;
26-
private final String resultServerTemplate;
2727

2828
private MockRemoteConfigClient(Template resultTemplate,
29+
String resultServerTemplate,
2930
ListVersionsResponse listVersionsResponse,
30-
FirebaseRemoteConfigException exception,
31-
String resultServerTemplate) {
31+
FirebaseRemoteConfigException exception) {
3232
this.resultTemplate = resultTemplate;
33+
this.resultServerTemplate = resultServerTemplate;
3334
this.listVersionsResponse = listVersionsResponse;
3435
this.exception = exception;
35-
this.resultServerTemplate = resultServerTemplate;
3636
}
3737

3838
static MockRemoteConfigClient fromTemplate(Template resultTemplate) {
39-
return new MockRemoteConfigClient(resultTemplate, null, null, null);
39+
return new MockRemoteConfigClient(resultTemplate,null, null, null);
4040
}
4141

4242
static MockRemoteConfigClient fromServerTemplate(String resultServerTemplate) {
43-
return new MockRemoteConfigClient(null, null, null, resultServerTemplate);
43+
return new MockRemoteConfigClient(null, resultServerTemplate,null, null);
4444
}
4545

4646
static MockRemoteConfigClient fromListVersionsResponse(
4747
ListVersionsResponse listVersionsResponse) {
48-
return new MockRemoteConfigClient(null, listVersionsResponse, null, null);
48+
return new MockRemoteConfigClient(null,null, listVersionsResponse, null);
4949
}
5050

5151
static MockRemoteConfigClient fromException(FirebaseRemoteConfigException exception) {
52-
return new MockRemoteConfigClient(null, null, exception, null);
52+
return new MockRemoteConfigClient(null,null, null, exception);
5353
}
5454

5555
@Override
@@ -101,4 +101,4 @@ public ListVersionsResponse listVersions(
101101
}
102102
return listVersionsResponse;
103103
}
104-
}
104+
}

0 commit comments

Comments
 (0)