예제 #1
0
  public static void main(String args[]) {

    Bird bird = new Bird();
    bird.walk();
    bird.fly();
    bird.sing();
  }
 @Test
 public void testBirdFlies() {
   Bird bird = new Bird();
   bird.fly();
   assertEquals("I am flying\n", stdout.toString());
 }