Commit 1d052927 authored by Lubomir Bulej's avatar Lubomir Bulej

ScopeTest: add test to make sure that an empty scope cannot be created.

parent 40851462
......@@ -207,4 +207,9 @@ public class ScopeTest {
assertFalse(s.toString(), s.matches("my/pkg/TargetClass", "method", "(IIII)I"));
assertFalse(s.toString(), s.matches("my/pkg/TargetClass", "method", "(Ljava.lang.String;)I"));
}
@Test(expected=ScopeParserException.class)
public void cannotCreateEmptyScope() throws ScopeParserException {
final Scope s = new ScopeImpl ("");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment