package org.eclipse.openk.portal.health.base; | |
import org.junit.Test; | |
import static org.junit.Assert.*; | |
public class ResultTest { | |
@Test | |
public void testAll() { | |
Result res1 = Result.healthy(); | |
Result res2 = Result.unhealthy("Msg"); | |
assertTrue(res1.isHealthy()); | |
assertFalse(res2.isHealthy()); | |
assertNull(res1.getMessage()); | |
assertNotNull(res2.getMessage()); | |
} | |
} |