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

fixes NPE and wrong assumptions for an assert #351

Merged
merged 1 commit into from
Oct 19, 2016

Conversation

flybyray
Copy link
Contributor

NPE in JDBCDriverInfoManager
remove assertion for url != null in Connection
adding test for jndi connection without any other properties

maybe you use the test without the other changes to see that birt has changed its behaviour with jndi name only connection since version 4.4.2

NPE in JDBCDriverInfoManager
remove assertion for url != null in Connection
adding test for jndi connection without any other properties
Copy link
Contributor

@garyxue garyxue left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for adding the comprehensive unit tests.

@yulinwang yulinwang merged commit fe504f6 into eclipse-birt:master Oct 19, 2016
String jndiName = getJndiName( );
try
{
System.setProperty( Context.INITIAL_CONTEXT_FACTORY,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@garyxue @yulinwang
Please take as note that this may not a perfect test, because this System.setProperty should be set/removed in After Before. If it is set it will maybe resist for other tests too.

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.

3 participants