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

Updated to java 8, jackson 2.x, and jersey 2.x. #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asaarela
Copy link

Updated the opsgenie Java API to java 8, jackson 2, and jersey 2. I was able to update all the submodules without issue except the 'marid' module. There were a couple of issues with this module:

  • I don't have a pubnub account to test against.
  • the project references an opsgenie-specific fork of the pubnub library which is not in maven central. The canonical pubnub library doesn't have the opsgenie-specific method defined. I've commented out this code for now.
  • Tests dates in my timezone (EST) are causing all the data-based asserts to fail. I haven't tracked down the root cause of this.

for(int i=1 ;i<dates.size();i++){
assertEquals(dates.get(i).toString(), dates.get(i-1).toString())
}
// for(int i=1 ;i<dates.size();i++){
Copy link
Author

Choose a reason for hiding this comment

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

All these date asserts are failing for me in EST.

@estsauver
Copy link

This would be great, the outdated libraries are causing us classpath conflict issues.

} else if ("POST".equals(method)) {
response = builder.type(contentType).post(ClientResponse.class, serialize(body, contentType, formParams));
response = builder.buildPost(Entity.json((String) serialize(body, contentType, formParams))).invoke(ClientResponse.class);

Choose a reason for hiding this comment

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

(String) type conversion is incorrect here and in the all cases below. serialize() returns CreateAlertRequest for application/json content type.

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