From a1c811333cbf2781f2991e41b2825565c18f1ea5 Mon Sep 17 00:00:00 2001
From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de>
Date: Mon, 28 Sep 2015 11:11:25 +0200
Subject: [PATCH] simplyfied the test

---
 .../exceptionHandling/ExceptionHandlingTest.java    | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java b/src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java
index 5fb16e84..1d0d5c6e 100644
--- a/src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java
+++ b/src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java
@@ -15,8 +15,6 @@
  */
 package teetime.framework.exceptionHandling;
 
-import static org.junit.Assert.assertTrue;
-
 import org.junit.Test;
 
 import teetime.framework.Execution;
@@ -24,16 +22,9 @@ import teetime.framework.ExecutionException;
 
 public class ExceptionHandlingTest {
 
-	@Test
+	@Test(expected = ExecutionException.class)
 	public void testException() {
-		boolean exceptionArised = false;
-		ExceptionPassingTestConfig exceptionPassingTestConfig = new ExceptionPassingTestConfig();
-		try {
-			new Execution<ExceptionPassingTestConfig>(exceptionPassingTestConfig).executeBlocking();
-		} catch (ExecutionException e) {
-			exceptionArised = true;
-		}
-		assertTrue(exceptionArised);
+		new Execution<ExceptionPassingTestConfig>(new ExceptionPassingTestConfig()).executeBlocking();
 	}
 
 }
-- 
GitLab