123456789101112131415161718192021222324252627282930313233343536373839 |
-
-
- import org.junit.Assert;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class CapybaraTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class CapybaraTest
- {
- Capybara rocky;
-
- @Before
- public void setup(){
- rocky = new Capybara("Rocky Pal-boa");
- }
-
- @Test
- public void speak() {
- String expected = "???";
- String actual = rocky.speak();
-
- Assert.assertEquals(expected, actual);
- }
-
- @Test
- public void name() {
- String expected = "Rocky Pal-boa";
- String actual = rocky.getName();
-
- Assert.assertEquals(expected, actual);
- }
- }
|