From: David ‘Bombe’ Roden Date: Wed, 30 Oct 2013 06:19:28 +0000 (+0100) Subject: Don’t use static imports if more than one TIME_COMPARATOR is used. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=79f8a4ca967da3a0e9c53640117576ea92601d15;p=Sone.git Don’t use static imports if more than one TIME_COMPARATOR is used. --- diff --git a/src/test/java/net/pterodactylus/sone/data/Mocks.java b/src/test/java/net/pterodactylus/sone/data/Mocks.java index d5c2c08..07ca567 100644 --- a/src/test/java/net/pterodactylus/sone/data/Mocks.java +++ b/src/test/java/net/pterodactylus/sone/data/Mocks.java @@ -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>() { @Override public List 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));