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.180 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.179 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.178 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.177 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.176 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.175 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.174 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.173 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.172 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.171 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.170 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.169 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.167 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.166 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.165 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.164 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.163 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.162 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.161 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java
trackler-2.2.1.160 tracks/java/exercises/two-fer/src/test/java/TwoferTest.java