-
Notifications
You must be signed in to change notification settings - Fork 24
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
HPCC4J-590 Add WsResources test cases #699
HPCC4J-590 Add WsResources test cases #699
Conversation
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.
@rpastrana Looks good, only issue is with the manual edits to the generated code, but not much we can do at the moment about that issue.
@@ -54,9 +56,16 @@ public String toString() | |||
} | |||
public org.hpccsystems.ws.client.gen.axis2.wsresources.latest.HPCCQueueType getRaw() |
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.
@rpastrana As we discussed offline this will likely be headache down the line, but there doesn't seem like much we could do here at the moment. In the future it might be worthwhile having the wrappers be auto-generated and subclass them to override behavior. That would require some changes to other parts of the code that construct the wrappers, but would could probably have a "factory" method on the wrapper that can be overridden as well so the calling code doesn't have to know that the correct subclass to construct.
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.
I may not understand what the 'raw' means. Why not change the name to getHPCCQueueType()?
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.
@wangkx this is actually an accepted convention for our generated wrapper code, the wrapper exposes the underlying raw types via the getraw methods
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.
OK
63369bc
to
134b1e2
Compare
- Adds test cases to account for all wsresources methods - Adds logic to create HPCCQueueType based on string representation - Adds all available methods to HPCCWsResourcesClient Signed-off-by: Rodrigo Pastrana <[email protected]>
134b1e2
to
891e1b3
Compare
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.
@rpastrana looks good to me
@wangkx please take a look at the test cases added here for wsresources. |
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.
@rpastrana 2 minor comments
@@ -54,9 +56,16 @@ public String toString() | |||
} | |||
public org.hpccsystems.ws.client.gen.axis2.wsresources.latest.HPCCQueueType getRaw() |
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.
I may not understand what the 'raw' means. Why not change the name to getHPCCQueueType()?
wsclient/src/test/java/org/hpccsystems/ws/client/WSResroucesClientTest.java
Show resolved
Hide resolved
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.
@rpastrana looks fine
- Adds test cases to account for all wsresources methods - Adds logic to create HPCCQueueType based on string representation - Adds all available methods to HPCCWsResourcesClient Signed-off-by: Rodrigo Pastrana <[email protected]>
Type of change:
Checklist:
Testing: