LocalProcessLog implements ProcessLog { @Override public String toString() { StringBundler sb = new StringBundler(7); sb.append("{level="); sb.append(_level); sb.append(", message="); sb.append(_message); sb.append(", throwable="); sb.append(_throwable); sb.append("}"); return sb.toString(); } LocalProcessLog(
		ProcessLog.Level level, String message, Throwable throwable); @Override boolean equals(Object object); @Override ProcessLog.Level getLevel(); @Override String getMessage(); @Override Throwable getThrowable(); @Override int hashCode(); @Override String toString();  }
@Test public void testModifiers() { Assert.assertEquals(0, LocalProcessLog.class.getModifiers()); Constructor<?>[] constructors = LocalProcessLog.class.getDeclaredConstructors(); Assert.assertEquals( Arrays.toString(constructors), 1, constructors.length); Constructor<?> constructor = constructors[0]; Assert.assertEquals(0, constructor.getModifiers()); }
@Test public void testToString() { String message = "message"; Throwable throwable = new Throwable(); LocalProcessLog localProcessLog = new LocalProcessLog( ProcessLog.Level.DEBUG, message, throwable); StringBundler sb = new StringBundler(7); sb.append("{level="); sb.append(ProcessLog.Level.DEBUG); sb.append(", message="); sb.append(message); sb.append(", throwable="); sb.append(throwable); sb.append("}"); Assert.assertEquals(localProcessLog.toString(), sb.toString()); }