コード例 #1
0
ファイル: LogLevelTest.java プロジェクト: vishalishere/iotsys
 /** Test method for {@link at.ac.tuwien.auto.calimero.log.LogLevel#equals(java.lang.Object)}. */
 public void testEqualsObject() {
   assertTrue(LogLevel.ALL.equals(LogLevel.ALL));
   assertTrue(LogLevel.INFO.equals(LogLevel.INFO));
   assertFalse(LogLevel.TRACE.equals(LogLevel.OFF));
   assertFalse(LogLevel.WARN.equals(LogLevel.INFO));
   assertFalse(LogLevel.FATAL.equals(new Object()));
   assertFalse(LogLevel.FATAL.equals(null));
 }
コード例 #2
0
ファイル: LogLevelTest.java プロジェクト: vishalishere/iotsys
 /**
  * Test method for {@link at.ac.tuwien.auto.calimero.log.LogLevel#higher
  * (at.ac.tuwien.auto.calimero.log.LogLevel)}.
  */
 public void testHigher() {
   assertTrue(LogLevel.ALL.higher(LogLevel.TRACE));
   assertTrue(LogLevel.TRACE.higher(LogLevel.INFO));
   assertTrue(LogLevel.INFO.higher(LogLevel.WARN));
   assertTrue(LogLevel.WARN.higher(LogLevel.ERROR));
   assertTrue(LogLevel.ERROR.higher(LogLevel.FATAL));
   assertTrue(LogLevel.FATAL.higher(LogLevel.OFF));
   assertFalse(LogLevel.OFF.higher(LogLevel.OFF));
 }