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

split to subprojects, core and test utils #28

Closed
wants to merge 4 commits into from
Closed

split to subprojects, core and test utils #28

wants to merge 4 commits into from

Conversation

Topru333
Copy link
Member

No description provided.

import java.util.concurrent.ScheduledExecutorService
import java.util.concurrent.TimeUnit

class TestRuleContext : IRuleContext {

Choose a reason for hiding this comment

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

Could we use the mockito library instead?


fun assertEqualsMessages(expected: Message, actual: Message, lazyMessage: () -> String? = {null}) {
val assertExpected = expected.toBuilder().apply {
metadataBuilder.timestampBuilder.resetTimestamp()

Choose a reason for hiding this comment

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

Maybe set the Timestamp.getDefaultInstance() instead of custom method to resetTimestamp

Copy link
Member Author

Choose a reason for hiding this comment

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

isn't result of this will be same, default timestamp gonna set time of creation point and we just gonna set both messages to same link of timestamp. Current realization seting both of them to same point too but zeroes.

@Topru333 Topru333 closed this Nov 22, 2021
@Topru333 Topru333 deleted the dev branch January 10, 2022 14:19
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.

2 participants