Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.junit.Assert;
- import org.junit.Test;
- import implementations.ReversedList;
- import org.junit.Before;
- import org.junit.Test;
- import static org.junit.Assert.*;
- public class RemoveAtTestElements {
- @Test
- public void removeAtShouldRemoveCorrectElement() {
- ReversedList<Integer> list = new ReversedList<Integer>();
- list.add(0);
- list.add(1);
- list.add(2);
- list.removeAt(0);
- Assert.assertEquals(2, (int)list.get(0));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement