Java junit test case for the class?

Your void output() method is declared to return void . That means it returns nothing. But in the below code you are expecting it to return "c,b,a" .

Either you have to change the output() to return String like String output() or you check for side-effects i.e. Any changes that output is performing in the method.

You should break up your program into smaller parts. I think what you are really trying to test is sortStringBubble. So create a test method that calls sortStringBubble with a certain set of characters and then checks that the method did the right thing by checking the result.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions