Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write three different JUnit tests: @Test public void testAdd() { System.out.println(add); Object element = null; Playlist instance = new Playlist(); boolean expResult = false; boolean

Write three different JUnit tests:

@Test public void testAdd() { System.out.println("add"); Object element = null; Playlist instance = new Playlist(); boolean expResult = false; boolean result = instance.add(element); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }

/** * Test of remove method, of class Playlist. */ @Test public void testRemove() { System.out.println("remove"); Object element = null; Playlist instance = new Playlist(); boolean expResult = false; boolean result = instance.remove(element); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }

@Test public void testPlay() { System.out.println("play"); int index = 0; Playlist instance = new Playlist(); Object expResult = null; Object result = instance.play(index); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }

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_2

Step: 3

blur-text-image_3

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 Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

Describe why accountants should be concerned about ethics.

Answered: 1 week ago