Skip to content
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

Merged
merged 4 commits into from
May 18, 2017

Conversation

surli
Copy link
Collaborator

@surli surli commented May 15, 2017

See #1283

@surli surli changed the title WiP add support for receiver parameter review:add support for receiver parameter May 17, 2017
assertThat(parameters.size(), is(1));

List<CtAnnotation<?>> annotations = parameters.get(0).getType().getAnnotations();
assertThat(annotations.size(), is(2));
Copy link
Collaborator

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));
Copy link
Collaborator

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();
Copy link
Collaborator

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

@monperrus monperrus merged commit 399f681 into INRIA:master May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants