blob: a86bcd69bdea08c9bdbec5fc8eb2087687d70963 [file] [log] [blame]
package org.junit.tests.experimental.theories.extendingwithstubs;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assume.assumeThat;
import org.junit.experimental.theories.Theory;
import org.junit.runner.RunWith;
@RunWith(StubbedTheories.class)
public class StubbedTheoriesTest {
@Theory
public void ask(@Stub Correspondent correspondent) {
assumeThat(correspondent.getAnswer("What is five?", "four", "five"),
is("five"));
}
}