19 lines
432 B
Java
19 lines
432 B
Java
package com.baeldung.jsonexception;
|
|
|
|
import org.junit.Test;
|
|
|
|
import com.baeldung.jsonexception.CustomException;
|
|
import com.baeldung.jsonexception.MainController;
|
|
|
|
public class MainControllerIntegrationTest {
|
|
|
|
@Test(expected = CustomException.class)
|
|
public void givenIndex_thenCustomException() throws CustomException {
|
|
|
|
MainController mainController = new MainController();
|
|
|
|
mainController.index();
|
|
|
|
}
|
|
|
|
} |