Don’t use static imports if more than one TIME_COMPARATOR is used.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 30 Oct 2013 06:19:28 +0000 (07:19 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:50 +0000 (22:25 +0100)
src/test/java/net/pterodactylus/sone/data/Mocks.java

index d5c2c08..07ca567 100644 (file)
@@ -21,7 +21,6 @@ import static com.google.common.base.Optional.of;
 import static com.google.common.collect.ArrayListMultimap.create;
 import static com.google.common.collect.Ordering.from;
 import static com.google.common.collect.Sets.newHashSet;
-import static net.pterodactylus.sone.data.Post.TIME_COMPARATOR;
 import static org.mockito.Matchers.anyString;
 import static org.mockito.Matchers.eq;
 import static org.mockito.Mockito.mock;
@@ -133,7 +132,7 @@ public class Mocks {
                        when(mockedSone.getPosts()).then(new Answer<List<Post>>() {
                                @Override
                                public List<Post> answer(InvocationOnMock invocationOnMock) throws Throwable {
-                                       return from(TIME_COMPARATOR).sortedCopy(sonePosts.get(mockedSone));
+                                       return from(Post.TIME_COMPARATOR).sortedCopy(sonePosts.get(mockedSone));
                                }
                        });
                        when(mockedSone.toString()).thenReturn(String.format("Sone[%s]", id));