|
21 | 21 | public class MockRemoteConfigClient implements FirebaseRemoteConfigClient{ |
22 | 22 |
|
23 | 23 | private final Template resultTemplate; |
24 | | - private final String resultServerTemplate; |
25 | 24 | private final FirebaseRemoteConfigException exception; |
26 | 25 | private final ListVersionsResponse listVersionsResponse; |
| 26 | + private final String resultServerTemplate; |
27 | 27 |
|
28 | 28 | private MockRemoteConfigClient(Template resultTemplate, |
29 | | - String resultServerTemplate, |
30 | 29 | ListVersionsResponse listVersionsResponse, |
31 | | - FirebaseRemoteConfigException exception) { |
| 30 | + FirebaseRemoteConfigException exception, |
| 31 | + String resultServerTemplate) { |
32 | 32 | this.resultTemplate = resultTemplate; |
33 | | - this.resultServerTemplate = resultServerTemplate; |
34 | 33 | this.listVersionsResponse = listVersionsResponse; |
35 | 34 | this.exception = exception; |
| 35 | + this.resultServerTemplate = resultServerTemplate; |
36 | 36 | } |
37 | 37 |
|
38 | 38 | static MockRemoteConfigClient fromTemplate(Template resultTemplate) { |
39 | 39 | return new MockRemoteConfigClient(resultTemplate, null, null, null); |
40 | 40 | } |
41 | 41 |
|
42 | 42 | static MockRemoteConfigClient fromServerTemplate(String resultServerTemplate) { |
43 | | - return new MockRemoteConfigClient(null, resultServerTemplate,null, null); |
| 43 | + return new MockRemoteConfigClient(null, null, null, resultServerTemplate); |
44 | 44 | } |
45 | 45 |
|
46 | 46 | static MockRemoteConfigClient fromListVersionsResponse( |
47 | 47 | ListVersionsResponse listVersionsResponse) { |
48 | | - return new MockRemoteConfigClient(null, null, listVersionsResponse, null); |
| 48 | + return new MockRemoteConfigClient(null, listVersionsResponse, null, null); |
49 | 49 | } |
50 | 50 |
|
51 | 51 | static MockRemoteConfigClient fromException(FirebaseRemoteConfigException exception) { |
52 | | - return new MockRemoteConfigClient(null, null, null, exception); |
| 52 | + return new MockRemoteConfigClient(null, null, exception, null); |
53 | 53 | } |
54 | 54 |
|
55 | 55 | @Override |
|
0 commit comments