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

Fix issue #201: GenProxyProcessor and Lists (Second try) #280

Merged
merged 3 commits into from
Jul 4, 2013
Merged

Fix issue #201: GenProxyProcessor and Lists (Second try) #280

merged 3 commits into from
Jul 4, 2013

Conversation

bmoritz
Copy link
Contributor

@bmoritz bmoritz commented Jun 25, 2013

Fixes issue #201; additionally tests for gwtp-processors have been moved from gwtp-dispatch-shared to their correct project (the maven dependencies also needed to be reverted for this)

bmoritz added 2 commits June 25, 2013 11:40
Move tests for gwtp-processors project from gwtp-dispatch-shared to
correct project. Refactor big test into several smaller tests each
testing one specific generator.
If a field has a UseProxy annotation and is of type List or Set, then in
the generated Proxy class this field (and its getters and setters) will
also be of type List or Set.
Extending test case for both scenarios; unfortunately it's not possible
to test if the generic type of the List or Set has been generated
correctly.
@bmoritz
Copy link
Contributor Author

bmoritz commented Jun 25, 2013

@branflake2267 Now it looks better, right?

@branflake2267
Copy link
Contributor

Commits look great, thanks :)


@Test
public void shouldGenerateDispatchWithOptionalFields() {
RetrieveFooAction action = new RetrieveFooAction.Builder(42).additionalQuestion("meaning of life").build();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, I like the test number and meaning :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but I can't take credit for it; the code was already there ;-)

…er Set or List interface

Adapt tests accordingly.
@christiangoudreau
Copy link
Member

LGTM

christiangoudreau added a commit that referenced this pull request Jul 4, 2013
Fix issue #201: GenProxyProcessor and Lists (Second try)
@christiangoudreau christiangoudreau merged commit af753e4 into ArcBees:master Jul 4, 2013
christiangoudreau added a commit that referenced this pull request Apr 4, 2014
Fix issue #201: GenProxyProcessor and Lists (Second try)
hpehl pushed a commit to hpehl/GWTP that referenced this pull request Dec 9, 2014
Fix issue ArcBees#201: GenProxyProcessor and Lists (Second try)


Former-commit-id: 798a0d0
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.

4 participants