-
-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
review:add support for receiver parameter #1298
review:add support for receiver parameter #1298
Conversation
assertThat(parameters.size(), is(1)); | ||
|
||
List<CtAnnotation<?>> annotations = parameters.get(0).getType().getAnnotations(); | ||
assertThat(annotations.size(), is(2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert on the content of the annotation?
|
||
List<CtParameter> parameters = methodSet.getParameters(); | ||
|
||
assertThat(parameters.size(), is(1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert on the name and type of this parameter?
@@ -932,6 +935,29 @@ public void testSpoonSpoonResult() throws Exception { | |||
} | |||
|
|||
@Test | |||
public void testGetAnnotationFromParameter() { | |||
Launcher spoon = new Launcher(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contract: Java 8 receiver parameters are handled
See #1283