Skip to content

Commit

Permalink
test(apollo-client): use assertEquals instead of assertThat
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilople authored and nobodyiam committed May 9, 2021
1 parent 6deedb3 commit 21ac89c
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.ctrip.framework.apollo.internals;

import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
Expand Down Expand Up @@ -138,9 +136,9 @@ public void testLoadConfigWithNoLocalFile() throws Exception {

Properties result = localFileConfigRepository.getConfig();

assertThat(
assertEquals(
"LocalFileConfigRepository's properties should be the same as fallback repo's when there is no local cache",
result.entrySet(), equalTo(someProperties.entrySet()));
result, someProperties);
assertEquals(someSourceType, localFileConfigRepository.getSourceType());
}

Expand All @@ -159,9 +157,9 @@ public void testLoadConfigWithNoLocalFileMultipleTimes() throws Exception {

Properties anotherProperties = anotherLocalRepoWithNoFallback.getConfig();

assertThat(
assertEquals(
"LocalFileConfigRepository should persist local cache files and return that afterwards",
someProperties.entrySet(), equalTo(anotherProperties.entrySet()));
someProperties, anotherProperties);
assertEquals(someSourceType, localRepo.getSourceType());
}

Expand Down

0 comments on commit 21ac89c

Please sign in to comment.