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

Issues with PowerMock #52

Closed
pitbulk opened this issue Aug 8, 2016 · 3 comments
Closed

Issues with PowerMock #52

pitbulk opened this issue Aug 8, 2016 · 3 comments

Comments

@pitbulk
Copy link
Contributor

pitbulk commented Aug 8, 2016

This toolkit uses PowerMock in order to test its methods.

There are some problems with PowerMock described in the documentation.

We should find a way to fix those problems. Right now it seems is not possible to execute test on Java8 (Java7 requires a extra command to disable the bytecode verification.

@luuuis
Copy link
Contributor

luuuis commented Aug 16, 2016

Are you open to removing PowerMock completely? I have found that it is not necessary to use byte code manipulation when the code being tested is designed with testing in mind.

For java-saml this might mean introducing some interfaces instead of using classes directly.

@pitbulk
Copy link
Contributor Author

pitbulk commented Aug 17, 2016

If you review the unit test you will see that I added PowerMock in order to be able to simulate HTTP Requests. How is your proposal to manage it?

Im open to suggestions, I dont consider me as a Java expert.

This java-saml toolkit is a port of the PHP/Python toolkits and I tried to implement as similar as possible in order to help me with the global maintenance so when I include a new feature in one I port the functionality on the rest.

The main goal is to keep the toolkit as simple as possible and cover most of the scenarios that normal SAML integrations requires. There are alternatives for the Onelogin's toolkits in all the languages but I saw that many customers decide to use them due the simplicity.

luuuis pushed a commit to atlassian/java-saml that referenced this issue Sep 1, 2016
luuuis pushed a commit to atlassian/java-saml that referenced this issue Sep 1, 2016
luuuis pushed a commit to atlassian/java-saml that referenced this issue Sep 1, 2016
luuuis pushed a commit to atlassian/java-saml that referenced this issue Sep 1, 2016
this frees us from the problems introduced by byte code manipulation.
@luuuis
Copy link
Contributor

luuuis commented Sep 5, 2016

I think we can close this :)

@pitbulk pitbulk closed this as completed Sep 5, 2016
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

No branches or pull requests

2 participants