Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Schneider committed Nov 29, 2018
1 parent 328a8b0 commit 3e437ad
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
*/
package io.micrometer.core.aop;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

import org.junit.jupiter.api.Test;
import org.springframework.aop.aspectj.annotation.AspectJProxyFactory;

import io.micrometer.core.annotation.Timed;
import io.micrometer.core.instrument.Meter.Id;
import io.micrometer.core.instrument.MeterRegistry;
Expand All @@ -29,6 +23,12 @@
import io.micrometer.core.instrument.distribution.pause.PauseDetector;
import io.micrometer.core.instrument.search.MeterNotFoundException;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
import io.micrometer.core.lang.NonNull;
import org.junit.jupiter.api.Test;
import org.springframework.aop.aspectj.annotation.AspectJProxyFactory;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

class TimedAspectTest {
@Test
Expand Down Expand Up @@ -76,8 +76,11 @@ private FailingMeterRegistry() {
super();
}

@NonNull
@Override
protected Timer newTimer(Id id, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector) {
protected Timer newTimer(@NonNull Id id,
@NonNull DistributionStatisticConfig distributionStatisticConfig,
@NonNull PauseDetector pauseDetector) {
throw new RuntimeException();
}
}
Expand Down

0 comments on commit 3e437ad

Please sign in to comment.