[LOGBack-dev] svn commit: r507 - logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders

noreply.seb at qos.ch noreply.seb at qos.ch
Tue Sep 5 08:59:25 CEST 2006


Author: seb
Date: Tue Sep  5 08:59:25 2006
New Revision: 507

Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/Builder.java
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEvent2Builder.java
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEventBuilder.java
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/MinimalExtBuilder.java
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/MinimalSerBuilder.java

Log:
better message forming

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/Builder.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/Builder.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/Builder.java	Tue Sep  5 08:59:25 2006
@@ -2,5 +2,8 @@
 
 public interface Builder {
 
+	final String MSG_PREFIX = "aaaaabbbbbcccccdddddaaaaabbbbbcccccdddddaaaa";
+	//final String MSG_PREFIX = "a";
+	
 	Object build(int i);
 }

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEvent2Builder.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEvent2Builder.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEvent2Builder.java	Tue Sep  5 08:59:25 2006
@@ -11,7 +11,7 @@
 		le.setLevel(Level.DEBUG);
 		le.setLogger(new LoggerContext().getLogger(LoggerContext.ROOT_NAME));
 		// 45 characters message
-		le.setMessage("aaaaabbbbbcccccdddddaaaaabbbbbcccccdddddaaaa" + i);
+		le.setMessage(MSG_PREFIX + i);
 		le.setThreadName("threadName");
 		return le;
 	}

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEventBuilder.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEventBuilder.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEventBuilder.java	Tue Sep  5 08:59:25 2006
@@ -11,7 +11,7 @@
 		le.setLevel(Level.DEBUG);
 		le.setLogger(new LoggerContext().getLogger(LoggerContext.ROOT_NAME));
 		// 45 characters message
-		le.setMessage("aaaaabbbbbcccccdddddaaaaabbbbbcccccdddddaaaa" + i);
+		le.setMessage(MSG_PREFIX + i);
 		le.setThreadName("threadName");
 		return le;
 	}

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/MinimalExtBuilder.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/MinimalExtBuilder.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/MinimalExtBuilder.java	Tue Sep  5 08:59:25 2006
@@ -26,7 +26,7 @@
 	
 	public MinimalExt(int i) {
 		// 45 characters message
-		message = "aaaaabbbbbcccccdddddaaaaabbbbbcccccdddddaaaa" + i;
+		message = Builder.MSG_PREFIX + i;
 	}
 
 	public void readExternal(ObjectInput in) throws IOException,

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/MinimalSerBuilder.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/MinimalSerBuilder.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/MinimalSerBuilder.java	Tue Sep  5 08:59:25 2006
@@ -19,6 +19,6 @@
 
 	public MinimalSer(int i) {
 		// 45 characters message
-		message = "aaaaabbbbbcccccdddddaaaaabbbbbcccccdddddaaaa" + i;
+		message = Builder.MSG_PREFIX + i;
 	}
 }
\ No newline at end of file



More information about the logback-dev mailing list