package parrot;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class ParrotTest {

    @Test
    public void getSpeedOfEuropeanParrot() {
        Parrot parrot = new Parrot(ParrotTypeEnum.EUROPEAN, 0, 0, false);
        assertEquals(parrot.getSpeed(), 12.0, 0.0);
    }

    @Test
    public void getSpeedOfAfricanParrot_With_One_Coconut() {
        Parrot parrot = new Parrot(ParrotTypeEnum.AFRICAN, 1, 0, false);
        assertEquals(parrot.getSpeed(), 3.0, 0.0);
    }

    @Test
    public void getSpeedOfAfricanParrot_With_Two_Coconuts() {
        Parrot parrot = new Parrot(ParrotTypeEnum.AFRICAN, 2, 0, false);
        assertEquals(parrot.getSpeed(), 0.0, 0.0);
    }

    @Test
    public void getSpeedOfAfricanParrot_With_No_Coconuts() {
        Parrot parrot = new Parrot(ParrotTypeEnum.AFRICAN, 0, 0, false);
        assertEquals(parrot.getSpeed(), 12.0, 0.0);
    }

    @Test
    public void getSpeedNorwegianBlueParrot_nailed() {
        Parrot parrot = new Parrot(ParrotTypeEnum.NORWEGIAN_BLUE, 0, 1.5, true);
        assertEquals(parrot.getSpeed(), 0.0, 0.0);
    }

    @Test
    public void getSpeedNorwegianBlueParrot_not_nailed() {
        Parrot parrot = new Parrot(ParrotTypeEnum.NORWEGIAN_BLUE, 0, 1.5, false);
        assertEquals(parrot.getSpeed(), 18.0, 0.0);
    }

    @Test
    public void getSpeedNorwegianBlueParrot_not_nailed_high_voltage() {
        Parrot parrot = new Parrot(ParrotTypeEnum.NORWEGIAN_BLUE, 0, 4, false);
        assertEquals(parrot.getSpeed(), 24.0, 0.0);
    }
}

@@ -249,32 +249,38 @@
    assertEquals(
+12.0, 
 parrot.getSpeed(
@@ -273,38 +273,32 @@
 rrot.getSpeed(),
- 12.0,
  0.0);%0A    %7D%0A%0A  
@@ -452,32 +452,37 @@
    assertEquals(
+3.0, 
 parrot.getSpeed(
@@ -487,13 +487,8 @@
 d(),
- 3.0,
  0.0
@@ -655,32 +655,37 @@
    assertEquals(
+0.0, 
 parrot.getSpeed(
@@ -678,37 +678,32 @@
 rrot.getSpeed(),
- 0.0,
  0.0);%0A    %7D%0A%0A  
@@ -857,32 +857,38 @@
    assertEquals(
+12.0, 
 parrot.getSpeed(
@@ -893,14 +893,8 @@
 d(),
- 12.0,
  0.0
@@ -1062,32 +1062,37 @@
    assertEquals(
+0.0, 
 parrot.getSpeed(
@@ -1097,13 +1097,8 @@
 d(),
- 0.0,
  0.0
@@ -1271,32 +1271,38 @@
    assertEquals(
+18.0, 
 parrot.getSpeed(
@@ -1307,14 +1307,8 @@
 d(),
- 18.0,
  0.0
@@ -1500,16 +1500,22 @@
 tEquals(
+24.0, 
 parrot.g
@@ -1528,14 +1528,8 @@
 d(),
- 24.0,
  0.0

Change arguments of JUnit assert to expected, actual.