Files

16 lines
440 B
Java

package lab.slices.failing;
import lab.slices.BookController;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.boot.webmvc.test.autoconfigure.WebMvcTest;
/** Fails on purpose: the controller needs a BookService and nothing in a @WebMvcTest provides one. */
@Tag("failure-demo")
@WebMvcTest(BookController.class)
public class MissingMockBeanFailure {
@Test
void neverRuns() {
}
}