Revert changes: AssertArrayEquals doesn't work on ArrayLists
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user