import org.junit.Before;
import org.junit.Test;
import org.junit.Ignore;

import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;

public class ResistorColorTest {

    private ResistorColor resistorColor;

    @Before
    public void setup() {
        resistorColor = new ResistorColor();
    }

    @Test
    public void testBlackColorCode() {
        String input = "black";
        int expected = 0;

        assertEquals(expected, resistorColor.colorCode(input));
    }

    @Ignore("Remove to run test")
    @Test
    public void testWhiteColorCode() {
        String input = "white";
        int expected = 9;

        assertEquals(expected, resistorColor.colorCode(input));
    }

    @Ignore("Remove to run test")
    @Test
    public void testOrangeColorCode() {
        String input = "orange";
        int expected = 3;

        assertEquals(expected, resistorColor.colorCode(input));
    }

    @Ignore("Remove to run test")
    @Test
    public void testColors() {
        String[] expected = {"black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white"};

        assertArrayEquals(expected, resistorColor.colors());
    }
    
}

@@ -66,17 +66,16 @@
 Ignore;%0A
-%0A
 import s
@@ -88,83 +88,46 @@
 org.
-junit.Assert.assertArrayEquals;%0Aimport static org.junit
+assertj.core.api
 .Assert
+ions
 .assert
-Equals
+That
 ;%0A%0Ap
@@ -352,90 +352,19 @@
     
-String input = %22black%22;%0A        int expected = 0;%0A%0A        assertEquals(expected, 
+assertThat(
 resi
@@ -375,38 +375,53 @@
 Color.colorCode(
-input)
+%22black%22)).isEqualTo(0
 );%0A    %7D%0A%0A    @I
@@ -509,90 +509,19 @@
     
-String input = %22white%22;%0A        int expected = 9;%0A%0A        assertEquals(expected, 
+assertThat(
 resi
@@ -532,38 +532,53 @@
 Color.colorCode(
-input)
+%22white%22)).isEqualTo(9
 );%0A    %7D%0A%0A    @I
@@ -667,91 +667,19 @@
     
-String input = %22orange%22;%0A        int expected = 3;%0A%0A        assertEquals(expected, 
+assertThat(
 resi
@@ -702,14 +702,30 @@
 ode(
-input)
+%22orange%22)).isEqualTo(3
 );%0A 
@@ -817,29 +817,76 @@
     
-String%5B%5D expected = %7B
+assertThat(resistorColor.colors()).containsExactly(%0A                
 %22bla
@@ -972,11 +972,8 @@
 ite%22
-%7D;%0A
 %0A   
@@ -981,58 +981,8 @@
     
-assertArrayEquals(expected, resistorColor.colors()
 );%0A 
@@ -990,11 +990,6 @@
   %7D%0A
-    %0A
 %7D%0A

Introduce assertj in resistor-color exercise (#1984)