From 179bc428c9da672a95511cdfe407058c888532e1 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Wed, 6 Mar 2002 10:09:10 +0000 Subject: [PATCH] Made it possible for subclasses to get at logger git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271765 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/myrmidon/components/AbstractComponentTest.java | 7 ++++++- .../apache/myrmidon/components/AbstractComponentTest.java | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/proposal/myrmidon/src/test/org/apache/myrmidon/components/AbstractComponentTest.java b/proposal/myrmidon/src/test/org/apache/myrmidon/components/AbstractComponentTest.java index 24be1370c..c6a3052fb 100644 --- a/proposal/myrmidon/src/test/org/apache/myrmidon/components/AbstractComponentTest.java +++ b/proposal/myrmidon/src/test/org/apache/myrmidon/components/AbstractComponentTest.java @@ -56,11 +56,16 @@ public abstract class AbstractComponentTest /** * Returns the component manager containing the components to test. */ - protected ServiceManager getServiceManager() + protected final ServiceManager getServiceManager() { return m_serviceManager; } + protected final Logger getLogger() + { + return m_logger; + } + /** * Returns the type manager. */ diff --git a/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/AbstractComponentTest.java b/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/AbstractComponentTest.java index 24be1370c..c6a3052fb 100644 --- a/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/AbstractComponentTest.java +++ b/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/AbstractComponentTest.java @@ -56,11 +56,16 @@ public abstract class AbstractComponentTest /** * Returns the component manager containing the components to test. */ - protected ServiceManager getServiceManager() + protected final ServiceManager getServiceManager() { return m_serviceManager; } + protected final Logger getLogger() + { + return m_logger; + } + /** * Returns the type manager. */