From 8fcc5e7896f147273a537132d18af2a45bde5b92 Mon Sep 17 00:00:00 2001 From: Albert Lee Date: Fri, 19 Feb 2010 18:37:45 +0000 Subject: [PATCH] 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 --- .../apache/openjpa/conf/TestCacheMarshallerEndToEnd.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestCacheMarshallerEndToEnd.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestCacheMarshallerEndToEnd.java index 175bde46f..10553c01c 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestCacheMarshallerEndToEnd.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestCacheMarshallerEndToEnd.java @@ -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) {