package ee.ria.xroad.monitor;

/**
 * Created by joni.laurila on 04/09/17.
 */
public class MetricRegistryHolderTest {
}

@@ -28,94 +28,555 @@
 r;%0A%0A
-/**%0A * Created by joni.laurila on 04/09/17.%0A */%0Apublic class MetricRegistryHolderTest %7B
+import lombok.extern.slf4j.Slf4j;%0Aimport org.junit.Test;%0A%0Aimport static junit.framework.TestCase.fail;%0A%0A/**%0A * MetricsRegistryHolderTest%0A */%0A@Slf4j%0Apublic class MetricRegistryHolderTest%7B%0A%0A    @Test%0A    public void testGetOrCreateSimpleSensor() %7B%0A%0A        try %7B%0A            MetricRegistryHolder holder = MetricRegistryHolder.getInstance();%0A            holder.getOrCreateSimpleSensor(%22Testi%22);%0A            holder.getOrCreateSimpleSensor(%22Testi%22);%0A        %7D catch (Exception e) %7B%0A            fail(%22Exception should not have thrwon.%22);%0A        %7D%0A%0A    %7D
 %0A%7D%0A

Test job for MetricRegistryHolder