Advertisement
JeffGrigg

Untitled

Feb 8th, 2024
1,451
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.77 KB | Software | 0 0
  1. import junit.framework.TestCase;
  2.  
  3. import java.util.Arrays;
  4.  
  5. public class NBottlesOfBeerOnTheWallTest extends TestCase {
  6.  
  7.     private static String[] lyricsForBottlesOfBeer(final int numberOfBottlesOfBeer) {
  8.         return new String[0];
  9.     }
  10.  
  11.     public void testZeroBottlesOfBeer() {
  12.         assertEqualsArrayValues(new String[]{
  13.                         "No more bottles of beer on the wall, no more bottles of beer.",
  14.                         "Go to the store and buy some more, 99 bottles of beer on the wall."},
  15.                 lyricsForBottlesOfBeer(0));
  16.     }
  17.  
  18.     private static void assertEqualsArrayValues(final String[] expectedLines, final String[] actualLines) {
  19.         assertEquals(Arrays.asList(expectedLines), Arrays.asList(actualLines));
  20.     }
  21.  
  22. }
  23.  
Tags: 99 Bottles
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement