package demo;

import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

public class FooTest {
    Foo obj;

    @Before
    public void setup() {
        obj = new Foo();
    }

    @Test
    public void testBarNonNegativeNumber() {
        assertEquals("bar did not return \"baz\"", "baz", obj.bar(0));
    }

    @Test(expected=IllegalArgumentException.class)
    public void testBarNegativeNumber() {
        obj.bar(-1);
    }
}