File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/java/com/cloudogu/scm/metrics
test/java/com/cloudogu/scm/metrics Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 37
37
@ Singleton
38
38
public class JsonMonitoringSystem implements MonitoringSystem {
39
39
40
- public static final String TYPE = "json" ;
40
+ public static final String NAME = "json" ;
41
41
42
42
private final SimpleMeterRegistry registry = new SimpleMeterRegistry ();
43
43
@@ -47,8 +47,8 @@ public MeterRegistry getRegistry() {
47
47
}
48
48
49
49
@ Override
50
- public String getType () {
51
- return TYPE ;
50
+ public String getName () {
51
+ return NAME ;
52
52
}
53
53
54
54
@ Override
Original file line number Diff line number Diff line change 34
34
class JsonMonitoringSystemTest {
35
35
36
36
@ Test
37
- void shouldReturnType () {
37
+ void shouldReturnName () {
38
38
JsonMonitoringSystem system = new JsonMonitoringSystem ();
39
- assertThat (system .getType ()).isEqualTo (JsonMonitoringSystem .TYPE );
39
+ assertThat (system .getName ()).isEqualTo (JsonMonitoringSystem .NAME );
40
40
}
41
41
42
42
@ Test
You can’t perform that action at this time.
0 commit comments