Question: public class TestWordCounter { // TODO complete this test class // TODO declare a reference to the SUT (system under test), i.e., WordCounter @Before public

public class TestWordCounter { // TODO complete this test class // TODO declare a reference to the SUT (system under test), i.e., WordCounter @Before public void setUp() { // TODO create the SUT instance } @After public void tearDown() { // TODO set the SUT instance to null } @Test public void testGetCountEmpty() { // TODO verify that the SUT initially returns an empty map } @Test public void testGetCountNonEmpty() { // TODO run the SUT on a specific String iterator with some repeated words, // then use assertions to verify the correct counts // do this for at least two words in the iterator and two not in the iterator fail(); } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!