Advertisement
IvetValcheva

Test 7

Nov 16th, 2022
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import org.junit.Assert;
  2. import org.junit.Test;
  3.  
  4. import implementations.ReversedList;
  5. import org.junit.Before;
  6. import org.junit.Test;
  7.  
  8. import static org.junit.Assert.*;
  9.  
  10. public class RemoveAtTestElements {
  11.  
  12. @Test
  13. public void removeAtShouldRemoveCorrectElement() {
  14. ReversedList<Integer> list = new ReversedList<Integer>();
  15. list.add(0);
  16. list.add(1);
  17. list.add(2);
  18. list.removeAt(0);
  19. Assert.assertEquals(2, (int)list.get(0));
  20. }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement