1 22 package org.objectweb.petals.kernel.registry.thread; 23 24 import org.objectweb.petals.util.LoggingUtil; 25 26 31 public class MockLoggingUtil extends LoggingUtil { 32 33 public MockLoggingUtil() { 34 super(null); 35 } 36 37 protected boolean warning; 38 39 public boolean isWarning() { 40 return warning; 41 } 42 43 public void setWarning(boolean warning) { 44 this.warning = warning; 45 } 46 47 public void warning(Object message) { 48 warning = true; 49 } 50 51 protected boolean error; 52 53 public void error(Object message) { 54 error = true; 55 } 56 57 public boolean isError() { 58 return error; 59 } 60 61 public void setError(boolean error) { 62 this.error = error; 63 } 64 65 public void error(Object message, Throwable throwable) { 66 error = true; 67 } 68 69 } 70 | Popular Tags |