462 |
|
} |
463 |
|
|
464 |
|
/** |
465 |
< |
* toArray with incompatable aray type throws CCE |
465 |
> |
* toArray with incompatible aray type throws CCE |
466 |
|
*/ |
467 |
|
public void testToArray1_BadArg() { |
468 |
|
ArrayDeque l = new ArrayDeque(); |
617 |
|
public void testAddFirst() { |
618 |
|
ArrayDeque q = populatedDeque(3); |
619 |
|
q.addFirst(four); |
620 |
< |
assertEquals(four,q.peekFirst()); |
620 |
> |
assertSame(four, q.peekFirst()); |
621 |
|
} |
622 |
|
|
623 |
|
/** |
626 |
|
public void testAddLast() { |
627 |
|
ArrayDeque q = populatedDeque(3); |
628 |
|
q.addLast(four); |
629 |
< |
assertEquals(four,q.peekLast()); |
629 |
> |
assertSame(four, q.peekLast()); |
630 |
|
} |
631 |
|
|
632 |
|
} |