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

HRCPP-137 C# hotrod client - reuse tests from the java client #27

Closed
wants to merge 1 commit into from
Closed

HRCPP-137 C# hotrod client - reuse tests from the java client #27

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 13, 2014

@tristantarrant
Copy link
Member

I don't understand why you're including the hotrod client sources in the PR and not pulling them in via maven ?

@ghost
Copy link
Author

ghost commented Apr 16, 2014

It's the same approach as in the jni tests for the C++ client. Some of the classes are modified to call into the C# code (e.g. RemoteCacheImpl) but some indeed are just copied.

Not sure why this approach is used in the C++ client and if there are some pitfalls in reusing the client from maven. It's for sure cleaner than duplicating code. I'll give it a try with the jar reused from maven and the classes which are modified before that jar on the classpath.

@rvansa
Copy link
Member

rvansa commented Apr 16, 2014

Running C# tests fails on my machine due to uninitialized variables, when an exception is thrown in some methods. Here is a fix:
rvansa@8aab48c

@ghost
Copy link
Author

ghost commented Apr 16, 2014

@rvansa would you mind sending a PR for the fix? I've added an issue for it https://issues.jboss.org/browse/HRCPP-143 and assigned it to you. Thank you for tracking this down!

@ghost
Copy link
Author

ghost commented Apr 16, 2014

Reusing the java classes from maven will be handled in HRCPP-144.

@rvansa
Copy link
Member

rvansa commented Apr 17, 2014

@isavin OK, the fix depends on this PR to be integrated, therefore, I can't file it as PR... You can grab it into this PR, if you want...
https://github.com/rvansa/dotnet-client/tree/t_143

@tristantarrant
Copy link
Member

It's in ! Thanks guys.

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.

None yet

3 participants