Navigation Menu

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

Clean up FieldValueTests #446

Merged
merged 4 commits into from May 17, 2019
Merged

Clean up FieldValueTests #446

merged 4 commits into from May 17, 2019

Conversation

wilhuff
Copy link
Contributor

@wilhuff wilhuff commented May 16, 2019

Reorganize to make things clearer:

  • Split out the tests that are really exercising the UserDataConverter into a UserDataConverterTest.
  • Move the Timestamp tests that are unrelated to FieldValue into TimestampTest

Also fix nullability annotations on Timestamp.

Copy link
Contributor

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

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

Nice. I think there's still a bit of fuzziness in that most of the (now-)UserDataConverter tests also test FieldValue.value() (i.e. the full round-trip from value => FieldValue => value) which isn't done by UserDataConverter but I don't think it's worth trying to split that apart.

@@ -37,7 +38,7 @@
@PublicApi
public final class Timestamp implements Comparable<Timestamp>, Parcelable {

@PublicApi
@PublicApi @NonNull
Copy link
Contributor

Choose a reason for hiding this comment

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

Newline?

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 had a newline here but googleJavaFormat eated it.

Copy link
Contributor

Choose a reason for hiding this comment

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

How rude!

@mikelehen mikelehen assigned wilhuff and unassigned mikelehen May 16, 2019
@wilhuff
Copy link
Contributor Author

wilhuff commented May 16, 2019

/retest

1 similar comment
@wilhuff
Copy link
Contributor Author

wilhuff commented May 17, 2019

/retest

@wilhuff wilhuff merged commit 47d41b9 into master May 17, 2019
@wilhuff wilhuff deleted the wilhuff/field-value-test-cleanup branch May 17, 2019 16:44
@firebase firebase locked and limited conversation to collaborators Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants