Skip to content

Conversation

@alexander-yevsyukov
Copy link
Contributor

No description provided.

Bumped version to `0.4.3-SNAPSHOT`.
Expeptions are delivered via `io.grpc.Status` to client side. So even though that most likely `FailureThrowable` will be used mainly in aggregate code, the client side needs to have the generated failure classes for working with gRPC statuses.
Increment version to 0.4.4 because of strange problems with publishing. We're advancing features anyway.
@alexander-yevsyukov
Copy link
Contributor Author

@andrey-lavrov, please do the following:

  1. address TODOs in the Mismatch class.
  2. Add tests for newly introduced methods in Values.

@Test
public void return_value_with_passed_values() {
final ValueMismatch mismatch = Mismatch.of(EXPECTED, FOUND, REQUESTED, VERSION);
assertTrue(mismatch.hasExpected());
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check if values are equal to expected.

@AlexanderLitus
Copy link
Contributor

LGTM then.

Added tests for new methods in Value class.
Added more tests to Mismatch class.
Renamed parameter in Mismatch.of method
@ghost
Copy link

ghost commented Jun 13, 2016

Fixed comments please review.

On Mon, Jun 13, 2016 at 3:12 PM, AlexanderLitus notifications@github.com
wrote:

LGTM then.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#154 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AO4uzRfqKwZNNtluPFtivslJstCTeaWHks5qLUk5gaJpZM4Iz8BO
.

@Test
public void return_mismatch_object_with_double_values() {
final double value0 = 0.1;
final double value1 = 0.1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use different values as in previous methods.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to rename them to expected, actual, requested. And you can get rid of the existing variables by inlining them.

Renamed local test variables to make code more readable.
@ghost
Copy link

ghost commented Jun 13, 2016

Done.

final int value0 = 0;
final int expected = 0;
final int value1 = 1;
final int value2 = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Pls rename these vars too.

Renamed local test variables to make code more readable.
@ghost
Copy link

ghost commented Jun 13, 2016

Done

@AlexanderLitus
Copy link
Contributor

LGTM.

@alexander-yevsyukov alexander-yevsyukov merged commit 27708e0 into master Jun 13, 2016
@alexander-yevsyukov alexander-yevsyukov deleted the value-mismatch branch June 13, 2016 14:44
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