1 8 9 package com.sleepycat.je.util; 10 11 import junit.framework.TestCase; 12 13 import com.sleepycat.je.utilint.HexFormatter; 14 15 19 public class HexFormatterTest extends TestCase { 20 public void testFormatLong() { 21 assertTrue(HexFormatter.formatLong(0).equals("0x0000000000000000")); 22 assertTrue(HexFormatter.formatLong(1).equals("0x0000000000000001")); 23 assertTrue(HexFormatter.formatLong(0x1234567890ABCDEFL).equals("0x1234567890abcdef")); 24 assertTrue(HexFormatter.formatLong(0x1234567890L).equals("0x0000001234567890")); 25 assertTrue(HexFormatter.formatLong(0xffffffffffffffffL).equals("0xffffffffffffffff")); 26 } 27 } 28 | Popular Tags |