1 package com.lexicalscope.fluentreflection.endtoend;
2
3 import static com.lexicalscope.fluentreflection.FluentReflection.type;
4 import static com.lexicalscope.fluentreflection.ReflectionMatchers.hasArguments;
5 import static org.hamcrest.MatcherAssert.assertThat;
6 import static org.hamcrest.Matchers.equalTo;
7
8 import org.junit.Test;
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 public class TestReflectionMatchersArgumentTypes {
27 public static interface A {
28 Object method();
29 }
30
31 @Test public void canMatchNoArguments() throws SecurityException, NoSuchMethodException {
32 assertThat(
33 type(A.class).method(hasArguments()).member(),
34 equalTo(A.class.getMethod("method")));
35 }
36 }