1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-02 09:46:24 +02:00

Add a small testcase for logging

This commit is contained in:
cpfeiffer 2018-08-06 22:34:35 +02:00
parent 3fac021ff2
commit 22e7569587

View File

@ -72,4 +72,13 @@ public class LoggingTest extends TestBase {
throw ex;
}
}
@Test
public void testLogFormat() {
String tempOut = Logging.formatBytes(new byte[] {0xa});
assertEquals("0x0a", tempOut);
tempOut = Logging.formatBytes(new byte[] {0xa, 1, (byte) 255});
assertEquals("0x0a 0x01 0xff", tempOut);
}
}