JeffGrigg icon

1st Test Passes

JeffGrigg | PRO | 02/08/24 04:01:37 PM UTC | 0 ⭐ | 13380 👁️ | Never ⏰ | [99 Bottles]
Java 5 |

0 B

|

Software

|

0 👍

/

0 👎

import junit.framework.TestCase;
 
import java.util.Arrays;
 
public class NBottlesOfBeerOnTheWallTest extends TestCase {
 
    private static String[] lyricsForBottlesOfBeer(final int numberOfBottlesOfBeer) {
        return new String[]{
                "No more bottles of beer on the wall, no more bottles of beer.",
                "Go to the store and buy some more, 99 bottles of beer on the wall."};
    }
 
    public void testZeroBottlesOfBeer() {
        assertEqualsArrayValues(new String[]{
                        "No more bottles of beer on the wall, no more bottles of beer.",
                        "Go to the store and buy some more, 99 bottles of beer on the wall."},
                lyricsForBottlesOfBeer(0));
    }
 
    private static void assertEqualsArrayValues(final String[] expectedLines, final String[] actualLines) {
        assertEquals(Arrays.asList(expectedLines), Arrays.asList(actualLines));
    }
 
}
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎