1 package com.aragost.javahg.log; 2 3 import static com.aragost.javahg.log.JULLogger.format; 4 5 import org.junit.Assert; 6 import org.junit.Test; 7 8 public class JULLoggerTest { 9 10 @Test 11 public void testFormat() { 12 Assert.assertEquals("", format("", new Object[0])); 13 Assert.assertEquals("abc", format("abc", new Object[] { null })); 14 Assert.assertEquals("ab", format("{}{}{}", new Object[] { "a", null, "b" })); 15 Assert.assertEquals("a1b2c3d", format("a{}b{}c{}d", new Object[] { 1,2,3,4,5,6 })); 16 } 17 18 }