Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to create a junit test for all these methods that I have implemented. I got all these methods from: https://docs.oracle.com/javase/8/docs/api/java/util/List.html#add-E- public int size(){

I need to create a junit test for all these methods that I have implemented.

I got all these methods from: https://docs.oracle.com/javase/8/docs/api/java/util/List.html#add-E-

public int size(){ return this.list.size(); } public boolean isEmpty(){ return this.list.isEmpty(); } public boolean contains(Object o){ return this.list.contains(o); } public Iterator iterator(){ return this.iterator(); } public Object[] toArray(){ return this.list.toArray(); } public T[] toArray(T[] a){ return this.list.toArray(a); } public boolean add(E e){ return this.list.add(e); } public boolean remove(Object o){ return this.list.remove(o); } public boolean containsAll(Collection c){ return this.list.containsAll(c); } public boolean addAll(Collection c){ return this.list.addAll(c); } public boolean addAll(int index,Collection c){ return this.list.addAll(index,c); } public boolean removeAll(Collection c){ return this.list.removeAll(c); } public boolean retainAll(Collection c){ return this.list.retainAll(c); } public void clear(){ this.clear(); } public boolean equals(Object o){ return this.list.equals(o); } public E get(int index){ return this.list.get(index); } public E set(int index,E element){ return this.list.set(index,element); } public void add(int index,E element){ this.list.add(index,element); } public E remove(int index){ return this.list.remove(index); } public int indexOf(Object o){ return this.list.indexOf(o); } public int lastIndexOf(Object o){ return this.lastIndexOf(o); } public ListIterator listIterator(){ return this.list.listIterator(); } public ListIterator listIterator(int index){ return this.list.listIterator(index); } public List subList(int fromIndex,int toIndex){ return this.list.subList(fromIndex,toIndex); } public boolean canFight(){ for(int i=0;i

If you could help me also fix my tick method its giving me a error and check my tostring that would be wonderful!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions