mirror of https://github.com/apache/openjpa.git
OPENJPA-1525 - Implements warn() method in TestCacheMarshallerEndToEnd$LogImpl class.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@911901 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a4c8f28e2c
commit
8fcc5e7896
|
@ -18,9 +18,7 @@
|
|||
*/
|
||||
package org.apache.openjpa.conf;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.persistence.EntityManager;
|
||||
|
@ -31,7 +29,6 @@ import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
|
|||
import org.apache.openjpa.persistence.query.NamedQueryEntity;
|
||||
import org.apache.openjpa.persistence.simple.AllFieldTypes;
|
||||
import org.apache.openjpa.persistence.test.AbstractCachedEMFTestCase;
|
||||
import org.apache.openjpa.persistence.test.PersistenceTestCase;
|
||||
import org.apache.openjpa.lib.log.Log;
|
||||
|
||||
public class TestCacheMarshallerEndToEnd
|
||||
|
@ -118,7 +115,7 @@ public class TestCacheMarshallerEndToEnd
|
|||
}
|
||||
|
||||
public boolean isWarnEnabled() {
|
||||
throw new UnsupportedOperationException();
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean isErrorEnabled() {
|
||||
|
@ -146,11 +143,11 @@ public class TestCacheMarshallerEndToEnd
|
|||
}
|
||||
|
||||
public void warn(Object o) {
|
||||
throw new UnsupportedOperationException();
|
||||
lines.add(o.toString());
|
||||
}
|
||||
|
||||
public void warn(Object o, Throwable t) {
|
||||
throw new UnsupportedOperationException();
|
||||
lines.add(o.toString());
|
||||
}
|
||||
|
||||
public void error(Object o) {
|
||||
|
|
Loading…
Reference in New Issue