Revert changes: AssertArrayEquals doesn't work on ArrayLists

This commit is contained in:
Merel Steenbergen
2019-03-26 13:56:48 +00:00
parent b1f3725f71
commit 4780ae7b11

View File

@@ -1,6 +1,5 @@
package greenify.server.service; package greenify.server.service;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertThrows;
@@ -172,7 +171,7 @@ public class UserServiceTest {
userService.addFriend("alex", "lola"); userService.addFriend("alex", "lola");
ArrayList<User> test = new ArrayList<User>(); ArrayList<User> test = new ArrayList<User>();
test.add(lola); test.add(lola);
assertArrayEquals(alex.getFriends(), test); assertEquals(alex.getFriends(), test);
} }
@Test @Test