Skip to content
Snippets Groups Projects
Commit a1c81133 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

simplyfied the test

parent 45e340f1
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
*/ */
package teetime.framework.exceptionHandling; package teetime.framework.exceptionHandling;
import static org.junit.Assert.assertTrue;
import org.junit.Test; import org.junit.Test;
import teetime.framework.Execution; import teetime.framework.Execution;
...@@ -24,16 +22,9 @@ import teetime.framework.ExecutionException; ...@@ -24,16 +22,9 @@ import teetime.framework.ExecutionException;
public class ExceptionHandlingTest { public class ExceptionHandlingTest {
@Test @Test(expected = ExecutionException.class)
public void testException() { public void testException() {
boolean exceptionArised = false; new Execution<ExceptionPassingTestConfig>(new ExceptionPassingTestConfig()).executeBlocking();
ExceptionPassingTestConfig exceptionPassingTestConfig = new ExceptionPassingTestConfig();
try {
new Execution<ExceptionPassingTestConfig>(exceptionPassingTestConfig).executeBlocking();
} catch (ExecutionException e) {
exceptionArised = true;
}
assertTrue(exceptionArised);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment