public class LogStatusTest {
@Test
public void testOKStatus(){
LogStatus ok = new Ok();
assertTrue(ok.isOk());
assertFalse(ok.isWarning());
assertFalse(ok.isError());
assertFalse(ok.isUnknown());
assertEquals(LogStatus.OK, ok.toChar());
assertFalse(ok.hasToBeUpdated(new Ok()));
assertTrue(ok.hasToBeUpdated(new Warning()));
assertTrue(ok.hasToBeUpdated(new Error()));
assertFalse(ok.hasToBeUpdated(new Unkown()));
}