Search in sources :

Example 1 with MultiApplicationHealthIndicator

use of com.alipay.sofa.boot.actuator.health.MultiApplicationHealthIndicator in project sofa-boot by sofastack.

the class MultiApplicationHealthIndicatorTest method testUp.

@Test
public void testUp() {
    SofaFramework.registerSofaRuntimeManager(new StandardSofaRuntimeManager("test1", this.getClass().getClassLoader(), null));
    Assert.assertEquals(Status.UP, new MultiApplicationHealthIndicator().health().getStatus());
}
Also used : MultiApplicationHealthIndicator(com.alipay.sofa.boot.actuator.health.MultiApplicationHealthIndicator) StandardSofaRuntimeManager(com.alipay.sofa.runtime.component.impl.StandardSofaRuntimeManager) Test(org.junit.Test)

Example 2 with MultiApplicationHealthIndicator

use of com.alipay.sofa.boot.actuator.health.MultiApplicationHealthIndicator in project sofa-boot by alipay.

the class MultiApplicationHealthIndicatorTest method testUp.

@Test
public void testUp() {
    SofaFramework.registerSofaRuntimeManager(new StandardSofaRuntimeManager("test1", this.getClass().getClassLoader(), null));
    Assert.assertEquals(Status.UP, new MultiApplicationHealthIndicator().health().getStatus());
}
Also used : MultiApplicationHealthIndicator(com.alipay.sofa.boot.actuator.health.MultiApplicationHealthIndicator) StandardSofaRuntimeManager(com.alipay.sofa.runtime.component.impl.StandardSofaRuntimeManager) Test(org.junit.Test)

Aggregations

MultiApplicationHealthIndicator (com.alipay.sofa.boot.actuator.health.MultiApplicationHealthIndicator)2 StandardSofaRuntimeManager (com.alipay.sofa.runtime.component.impl.StandardSofaRuntimeManager)2 Test (org.junit.Test)2