Sha256: 63ef3d0f1af483544aa37bc53386ce3d2f2cbd8ef033e87ae28364a8bb397716

Contents?: true

Size: 891 Bytes

Versions: 99

Compression:

Stored size: 891 Bytes

Contents

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

import static org.junit.Assert.assertEquals;

public class TwoferTest {

    private Twofer twofer;

    @Before
    public void setup() {
        twofer = new Twofer();
    }

    @Test
    public void noNameGiven() {
        String input = null;
        String expected = "One for you, one for me.";

        assertEquals(expected, twofer.twofer(input));
    }

    @Ignore("Remove to run test")
    @Test
    public void aNameGiven() {
        String input = "Alice";
        String expected = "One for Alice, one for me.";

        assertEquals(expected, twofer.twofer(input));
    }

    @Ignore("Remove to run test")
    @Test
    public void anotherNameGiven() {
        String input = "Bob";
        String expected = "One for Bob, one for me.";

        assertEquals(expected, twofer.twofer(input));
    }
}

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.158 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.157 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.156 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.155 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.154 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.153 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.152 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.151 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.150 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.149 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.148 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.147 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.146 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.145 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.144 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.143 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.142 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.141 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.140 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java