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

Added RequestPayloadTest for testing payloads in requests #849

Merged
merged 1 commit into from
Jan 16, 2019
Merged

Added RequestPayloadTest for testing payloads in requests #849

merged 1 commit into from
Jan 16, 2019

Conversation

rogierc
Copy link
Contributor

@rogierc rogierc commented Jan 12, 2019

Added RequestPayloadTest. It containes testcases discussed in issue #834 .
Please review. Especially the CoapNetworkRule and server/client construction.

Signed-off-by: Rogier Cobben [email protected]

@@ -0,0 +1,336 @@
/*******************************************************************************
* Copyright (c) 2019 Institute for Pervasive Computing, ETH Zurich and others.
*
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess, you don't work for "Institute for Pervasive Computing, ETH Zurich"?
Please replace it either with your name, or, if this is the result of your work for a company, that company name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have changed the header.

@boaks
Copy link
Contributor

boaks commented Jan 13, 2019

If you used the Eclipse IDE, californium parent contains a eclipse-formatter-profile.xml. May be you can apply this. If you don't use the Eclipse IDE, I would go to format it after merging your PR.

@rogierc
Copy link
Contributor Author

rogierc commented Jan 14, 2019

Yes, the eclipse-formatter-profile is used to format.

if (content[i] != (byte) (i % (Byte.MAX_VALUE + 1))) {
return false;
}
;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the maverick ";"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is removed

@boaks
Copy link
Contributor

boaks commented Jan 15, 2019

Great! Could you please remove the "maverick" ; and then squash your commits to one commit?
If that's done, LGTM.

@rogierc
Copy link
Contributor Author

rogierc commented Jan 16, 2019

"maverick" ; is removed and commits squashed to one changeset on the branch

@boaks
Copy link
Contributor

boaks commented Jan 16, 2019

Thanks a lot! Could you please add a "." after the commit message "RequestPayloadTest for testing payloads in requests"? I guess, the ip-validation error is caused by that :-).

@rogierc
Copy link
Contributor Author

rogierc commented Jan 16, 2019

I've put a dot after the comment. Doesn't seems to solve it. Is a dot needed after the signed-off line, maybe?
No dots were needed before though...

@rogierc
Copy link
Contributor Author

rogierc commented Jan 16, 2019

hm, details shows it complains about Signed-off-by footers. But footer looks OK to me...

@rogierc
Copy link
Contributor Author

rogierc commented Jan 16, 2019

I committed and pushed again, but using the same e-mail adress as the signing. That seems to solve the problem..

@boaks
Copy link
Contributor

boaks commented Jan 16, 2019

Yes, it was the "Committer: rogierc [email protected]".

@boaks boaks merged commit 18fc951 into eclipse-californium:2.0.x Jan 16, 2019
@rogierc rogierc deleted the cf2-issue384-test branch January 16, 2019 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants