mirror of
https://github.com/google/nomulus.git
synced 2025-06-30 00:03:37 +02:00
Avoid mocking in tests for EppMetric
Followup to [] Mocking shouldn't be used when you can use the real implementation just as easily (and more robustly) - in particular, you almost never want to mock a value type. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132586826
This commit is contained in:
parent
e478fd09fb
commit
36c6d59fee
4 changed files with 26 additions and 29 deletions
|
@ -48,7 +48,7 @@ interface EppTestComponent {
|
|||
|
||||
FakesAndMocksModule(FakeClock clock) {
|
||||
this.clock = clock;
|
||||
this.metrics = mock(EppMetric.Builder.class);
|
||||
this.metrics = new EppMetric.Builder();
|
||||
this.modulesService = mock(ModulesService.class);
|
||||
this.metricsEnqueuer = mock(BigQueryMetricsEnqueuer.class);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue