Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started