Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please, I Need help. I am struggling with these two methods JUnit test in java ordered list ARE IN MALIKAHS SUPPLY RooM /cos210/ds/OrderedList.java- Eclipse IDE

Please, I Need help. I am struggling with these two methods JUnit test in java ordered list
image text in transcribed
image text in transcribed
image text in transcribed
ARE IN MALIKAHS SUPPLY RooM /cos210/ds/OrderedList.java- Eclipse IDE Project Run Window Help "Orderedlistjava X 2) DoublyLinkedListjava DataStructures2019 (Simpl edu.mccc.cos210.d:) e OrderedList> 1 package edu.mccc.cos210.ds;l 2 public class OrderedList extends DoublylinkedList implements IOrderedList ( 4 @Override e5 public void add(T data) f 6 7 addFirst (data); addLast(data); 8 10 Override public boolean contains (T data) t boolean head false; java.util.Iterator it iterator); while (it.hasNextO) f 12 13 14 15 16 17 18 19 20 if(it.next().equals (data)) f return true; return false; return head; Console 3 erminateds im Ordered List Tests (JUnit) C:AUserslaltracre88 Desktop jdk-11.02 bin javaw.eve (Feb 0 errors, 2 warnings, 2 othen FAILURE: makeTypeChar Success: addingAddsLast Description Warnings (2 items) e Workplace- DataStructures2019/impl/edu/mccc/cos210/ds/Orderedli File Edit Source Refactor Navigate Search Project Run Wi at Unit X 1"OrderedList,java DataStructures 1 package ed G 2 public cla Package Explorer - Finished after 0.162 seconds Runs: 12/12 "Errors: 0 Failures: 5 4e @0vern 5 public edu.mccc.cos210.ds.jjm-OrderedListTe: ^ addFir addLas amakeTypeDouble (0.000 s) 8 makeTypeString (0.000s) addingDoesNotContain (0.000 s) 10 @Overr public bo ja wh addingContains-singleEntry (0.000 slil 11 dl integrity.compareToClone (0.000 s) 12 13 d addingContains manyEntries (0.000 14 15 16 17 v 18 19 integrity-com pareToSB (0.000 s) makeTypeint (0.000 s) makeTypeBoolean (0.000 s) makeTypeChar (0.000 s) addingAddsLast (0.000 5) = Failure Trace java.lang.AssertionError: expected: but at edu.mccc.cos210.ds.im-OrderedListTests.r ret E Console B terminated> jim Orde 1 package edu.mccc. cos21e.ds;l O 2 public class OrderedList extends DoublyLink s 5 4e @Override 5 6 public void add(T data) { istTe A7 addFirst(data): Console X sterminated> jm OrderedListTests (UUnit) CiUserslaltraore88 Desktopljdk-11 Testing: OrderedList 000 s FAILURE: makeTypeDouble FAILURE: makeTypeString Success: addingDoesNotContain Success: addingContains_singleEntry Success: integrity_compareToClone FAILURE: integrity_compareToSB .000 Success: addingContains_manyEntries e but FAILURE: makeTypeInt tTests.r Success: makeTypeBoolean FAILURE: makeTypeChar Success: addingAddsLast Success: emptyListContains ARE IN MALIKAHS SUPPLY RooM /cos210/ds/OrderedList.java- Eclipse IDE Project Run Window Help "Orderedlistjava X 2) DoublyLinkedListjava DataStructures2019 (Simpl edu.mccc.cos210.d:) e OrderedList> 1 package edu.mccc.cos210.ds;l 2 public class OrderedList extends DoublylinkedList implements IOrderedList ( 4 @Override e5 public void add(T data) f 6 7 addFirst (data); addLast(data); 8 10 Override public boolean contains (T data) t boolean head false; java.util.Iterator it iterator); while (it.hasNextO) f 12 13 14 15 16 17 18 19 20 if(it.next().equals (data)) f return true; return false; return head; Console 3 erminateds im Ordered List Tests (JUnit) C:AUserslaltracre88 Desktop jdk-11.02 bin javaw.eve (Feb 0 errors, 2 warnings, 2 othen FAILURE: makeTypeChar Success: addingAddsLast Description Warnings (2 items) e Workplace- DataStructures2019/impl/edu/mccc/cos210/ds/Orderedli File Edit Source Refactor Navigate Search Project Run Wi at Unit X 1"OrderedList,java DataStructures 1 package ed G 2 public cla Package Explorer - Finished after 0.162 seconds Runs: 12/12 "Errors: 0 Failures: 5 4e @0vern 5 public edu.mccc.cos210.ds.jjm-OrderedListTe: ^ addFir addLas amakeTypeDouble (0.000 s) 8 makeTypeString (0.000s) addingDoesNotContain (0.000 s) 10 @Overr public bo ja wh addingContains-singleEntry (0.000 slil 11 dl integrity.compareToClone (0.000 s) 12 13 d addingContains manyEntries (0.000 14 15 16 17 v 18 19 integrity-com pareToSB (0.000 s) makeTypeint (0.000 s) makeTypeBoolean (0.000 s) makeTypeChar (0.000 s) addingAddsLast (0.000 5) = Failure Trace java.lang.AssertionError: expected: but at edu.mccc.cos210.ds.im-OrderedListTests.r ret E Console B terminated> jim Orde 1 package edu.mccc. cos21e.ds;l O 2 public class OrderedList extends DoublyLink s 5 4e @Override 5 6 public void add(T data) { istTe A7 addFirst(data): Console X sterminated> jm OrderedListTests (UUnit) CiUserslaltraore88 Desktopljdk-11 Testing: OrderedList 000 s FAILURE: makeTypeDouble FAILURE: makeTypeString Success: addingDoesNotContain Success: addingContains_singleEntry Success: integrity_compareToClone FAILURE: integrity_compareToSB .000 Success: addingContains_manyEntries e but FAILURE: makeTypeInt tTests.r Success: makeTypeBoolean FAILURE: makeTypeChar Success: addingAddsLast Success: emptyListContains

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

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

Is there a clear hierarchy of points in my outline?

Answered: 1 week ago