diff --git a/com.avaloq.tools.ddk.typesystem.test/src/com/avaloq/tools/ddk/typesystem/ParameterListMatcherTest.java b/com.avaloq.tools.ddk.typesystem.test/src/com/avaloq/tools/ddk/typesystem/ParameterListMatcherTest.java index 48395fd31..94f0e07fc 100644 --- a/com.avaloq.tools.ddk.typesystem.test/src/com/avaloq/tools/ddk/typesystem/ParameterListMatcherTest.java +++ b/com.avaloq.tools.ddk.typesystem.test/src/com/avaloq/tools/ddk/typesystem/ParameterListMatcherTest.java @@ -13,7 +13,6 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; -import static org.junit.Assert.fail; import java.util.ArrayList; import java.util.List; @@ -179,13 +178,9 @@ public IMatchResult checkMatch(final IActualParameter actual, final IFormalParam } else { return matchResultTypeError; } - } else { - fail("incorrect parameters"); - return null; - } - + } + throw new AssertionError("incorrect parameters"); } - } private final ParameterListMatcher parameterListMatcher = new ParameterListMatcher();