incubator-composer-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r618262 - in /incubator/composer/trunk/composer-core/src/test/java: ./ org/apache/composer/core/monitors/
Date Mon, 04 Feb 2008 12:54:59 GMT
Author: mauro
Date: Mon Feb  4 04:54:59 2008
New Revision: 618262

URL: http://svn.apache.org/viewvc?rev=618262&view=rev
Log:
Fixed configuration for monitors' tests.

Added:
    incubator/composer/trunk/composer-core/src/test/java/log4j.xml
    incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/AbstractComponentMonitorTestCase.java
      - copied, changed from r618229, incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/ComponentMonitorHelperTestCase.java
    incubator/composer/trunk/composer-core/src/test/java/test.properties   (with props)
Removed:
    incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/ComponentMonitorHelperTestCase.java
Modified:
    incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerCommonsLoggingComponentMonitorTestCase.java
    incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerLog4JComponentMonitorTestCase.java
    incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerCommonsLoggingComponentMonitorTestCase.java
    incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerLog4JComponentMonitorTestCase.java

Added: incubator/composer/trunk/composer-core/src/test/java/log4j.xml
URL: http://svn.apache.org/viewvc/incubator/composer/trunk/composer-core/src/test/java/log4j.xml?rev=618262&view=auto
==============================================================================
--- incubator/composer/trunk/composer-core/src/test/java/log4j.xml (added)
+++ incubator/composer/trunk/composer-core/src/test/java/log4j.xml Mon Feb  4 04:54:59 2008
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration debug="false" threshold="null" xmlns:log4j="http://jakarta.apache.org/log4j/">
+	
+	<appender class="org.apache.composer.core.monitors.ForTestSakeAppender" name="FILE">
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
+		</layout>
+	</appender>
+
+	<appender class="org.apache.log4j.ConsoleAppender" name="CONSOLE">
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
+		</layout>
+	</appender>
+
+	<logger additivity="true" name="org.apache.composer.core">
+		<level value="DEBUG"/>
+		<appender-ref ref="FILE"/>
+	</logger>
+
+    <logger additivity="true" name="java.lang">
+        <level value="DEBUG"/>
+        <appender-ref ref="FILE"/>
+    </logger>
+
+	<root>
+		<level value="DEBUG"/>
+	</root>
+</log4j:configuration>
\ No newline at end of file

Copied: incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/AbstractComponentMonitorTestCase.java
(from r618229, incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/ComponentMonitorHelperTestCase.java)
URL: http://svn.apache.org/viewvc/incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/AbstractComponentMonitorTestCase.java?p2=incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/AbstractComponentMonitorTestCase.java&p1=incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/ComponentMonitorHelperTestCase.java&r1=618229&r2=618262&rev=618262&view=diff
==============================================================================
--- incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/ComponentMonitorHelperTestCase.java
(original)
+++ incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/AbstractComponentMonitorTestCase.java
Mon Feb  4 04:54:59 2008
@@ -39,7 +39,7 @@
  * @author Mauro Talevi
  * @author Juze Peleteiro
  */
-public abstract class ComponentMonitorHelperTestCase {
+public abstract class AbstractComponentMonitorTestCase {
     private ComponentMonitor componentMonitor;
     private Constructor constructor;
     private Method method;

Modified: incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerCommonsLoggingComponentMonitorTestCase.java
URL: http://svn.apache.org/viewvc/incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerCommonsLoggingComponentMonitorTestCase.java?rev=618262&r1=618261&r2=618262&view=diff
==============================================================================
--- incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerCommonsLoggingComponentMonitorTestCase.java
(original)
+++ incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerCommonsLoggingComponentMonitorTestCase.java
Mon Feb  4 04:54:59 2008
@@ -18,13 +18,13 @@
 
 import org.apache.composer.core.ComponentMonitor;
 import org.apache.composer.core.monitors.CommonsLoggingComponentMonitor;
-import org.apache.composer.core.monitors.ComponentMonitorHelperTestCase;
+import org.apache.composer.core.monitors.AbstractComponentMonitorTestCase;
 
 import java.io.IOException;
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Method;
 
-public class MultipleLoggerCommonsLoggingComponentMonitorTestCase extends ComponentMonitorHelperTestCase
{
+public class MultipleLoggerCommonsLoggingComponentMonitorTestCase extends AbstractComponentMonitorTestCase
{
 
     String logPrefixName = String.class.getName();
 

Modified: incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerLog4JComponentMonitorTestCase.java
URL: http://svn.apache.org/viewvc/incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerLog4JComponentMonitorTestCase.java?rev=618262&r1=618261&r2=618262&view=diff
==============================================================================
--- incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerLog4JComponentMonitorTestCase.java
(original)
+++ incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/MultipleLoggerLog4JComponentMonitorTestCase.java
Mon Feb  4 04:54:59 2008
@@ -17,7 +17,7 @@
 package org.apache.composer.core.monitors;
 
 import org.apache.composer.core.ComponentMonitor;
-import org.apache.composer.core.monitors.ComponentMonitorHelperTestCase;
+import org.apache.composer.core.monitors.AbstractComponentMonitorTestCase;
 import org.apache.composer.core.monitors.Log4JComponentMonitor;
 
 import java.io.IOException;
@@ -28,7 +28,7 @@
  * @author Paul Hammant
  * @author Mauro Talevi
  */
-public class MultipleLoggerLog4JComponentMonitorTestCase extends ComponentMonitorHelperTestCase
{
+public class MultipleLoggerLog4JComponentMonitorTestCase extends AbstractComponentMonitorTestCase
{
 
     String logPrefixName = String.class.getName();
 

Modified: incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerCommonsLoggingComponentMonitorTestCase.java
URL: http://svn.apache.org/viewvc/incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerCommonsLoggingComponentMonitorTestCase.java?rev=618262&r1=618261&r2=618262&view=diff
==============================================================================
--- incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerCommonsLoggingComponentMonitorTestCase.java
(original)
+++ incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerCommonsLoggingComponentMonitorTestCase.java
Mon Feb  4 04:54:59 2008
@@ -18,14 +18,14 @@
 
 import org.apache.composer.core.ComponentMonitor;
 import org.apache.composer.core.monitors.CommonsLoggingComponentMonitor;
-import org.apache.composer.core.monitors.ComponentMonitorHelperTestCase;
+import org.apache.composer.core.monitors.AbstractComponentMonitorTestCase;
 import org.junit.Test;
 
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Method;
 import java.io.IOException;
 
-public class SingleLoggerCommonsLoggingComponentMonitorTestCase extends ComponentMonitorHelperTestCase
{
+public class SingleLoggerCommonsLoggingComponentMonitorTestCase extends AbstractComponentMonitorTestCase
{
 
     protected ComponentMonitor makeComponentMonitor() {
         return new CommonsLoggingComponentMonitor(CommonsLoggingComponentMonitor.class);

Modified: incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerLog4JComponentMonitorTestCase.java
URL: http://svn.apache.org/viewvc/incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerLog4JComponentMonitorTestCase.java?rev=618262&r1=618261&r2=618262&view=diff
==============================================================================
--- incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerLog4JComponentMonitorTestCase.java
(original)
+++ incubator/composer/trunk/composer-core/src/test/java/org/apache/composer/core/monitors/SingleLoggerLog4JComponentMonitorTestCase.java
Mon Feb  4 04:54:59 2008
@@ -17,7 +17,7 @@
 package org.apache.composer.core.monitors;
 
 import org.apache.composer.core.ComponentMonitor;
-import org.apache.composer.core.monitors.ComponentMonitorHelperTestCase;
+import org.apache.composer.core.monitors.AbstractComponentMonitorTestCase;
 import org.apache.composer.core.monitors.Log4JComponentMonitor;
 
 import java.io.IOException;
@@ -28,7 +28,7 @@
  * @author Paul Hammant
  * @author Mauro Talevi
  */
-public class SingleLoggerLog4JComponentMonitorTestCase extends ComponentMonitorHelperTestCase
{
+public class SingleLoggerLog4JComponentMonitorTestCase extends AbstractComponentMonitorTestCase
{
 
     protected ComponentMonitor makeComponentMonitor() {
         return new Log4JComponentMonitor(Log4JComponentMonitor.class);

Added: incubator/composer/trunk/composer-core/src/test/java/test.properties
URL: http://svn.apache.org/viewvc/incubator/composer/trunk/composer-core/src/test/java/test.properties?rev=618262&view=auto
==============================================================================
--- incubator/composer/trunk/composer-core/src/test/java/test.properties (added)
+++ incubator/composer/trunk/composer-core/src/test/java/test.properties Mon Feb  4 04:54:59
2008
@@ -0,0 +1 @@
+foo=bar
\ No newline at end of file

Propchange: incubator/composer/trunk/composer-core/src/test/java/test.properties
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message