Skip to content

Commit e868b48

Browse files
committed
Reflect latest core changes
1 parent 0e9f9e6 commit e868b48

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/com/cloudogu/scm/metrics/JsonMonitoringSystem.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
@Singleton
3838
public class JsonMonitoringSystem implements MonitoringSystem {
3939

40-
public static final String TYPE = "json";
40+
public static final String NAME = "json";
4141

4242
private final SimpleMeterRegistry registry = new SimpleMeterRegistry();
4343

@@ -47,8 +47,8 @@ public MeterRegistry getRegistry() {
4747
}
4848

4949
@Override
50-
public String getType() {
51-
return TYPE;
50+
public String getName() {
51+
return NAME;
5252
}
5353

5454
@Override

src/test/java/com/cloudogu/scm/metrics/JsonMonitoringSystemTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
class JsonMonitoringSystemTest {
3535

3636
@Test
37-
void shouldReturnType() {
37+
void shouldReturnName() {
3838
JsonMonitoringSystem system = new JsonMonitoringSystem();
39-
assertThat(system.getType()).isEqualTo(JsonMonitoringSystem.TYPE);
39+
assertThat(system.getName()).isEqualTo(JsonMonitoringSystem.NAME);
4040
}
4141

4242
@Test

0 commit comments

Comments
 (0)