[logback-dev] svn commit: r680 - logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling

noreply.ceki at qos.ch noreply.ceki at qos.ch
Sun Oct 15 17:26:39 CEST 2006


Author: ceki
Date: Sun Oct 15 17:26:38 2006
New Revision: 680

Modified:
   logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/SizeBasedTriggeringPolicyTest.java

Log:
indentation changes only

Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/SizeBasedTriggeringPolicyTest.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/SizeBasedTriggeringPolicyTest.java	(original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/SizeBasedTriggeringPolicyTest.java	Sun Oct 15 17:26:38 2006
@@ -6,39 +6,40 @@
 
 public class SizeBasedTriggeringPolicyTest extends TestCase {
 
-	public void testStringToLong() {
-		Context context = new ContextBase();
-		SizeBasedTriggeringPolicy policy = new SizeBasedTriggeringPolicy();
-		policy.setContext(context);
-
-		Long result;
-
-		{
-			result = policy.toFileSize("123");
-			assertEquals(new Long("123"), result);
-		}
-		{
-			result = policy.toFileSize("123KB");
-			// = 123 * 1024
-			assertEquals(new Long("125952"), result);
-		}
-		{
-			result = policy.toFileSize("123MB");
-			// = 123 * 1024 * 1024
-			assertEquals(new Long("128974848"), result);
-		}
-		{
-			result = policy.toFileSize("123GB");
-			// = 123 * 1024 * 1024 * 1024
-			assertEquals(new Long("132070244352"), result);
-		}
-
-		{
-			result = policy.toFileSize("123xxxx");
-			// = 123 * 1024 * 1024 * 1024
-			assertEquals(new Long(SizeBasedTriggeringPolicy.DEFAULT_MAX_FILE_SIZE), result);
-			assertEquals(2, context.getStatusManager().getCount());
-		}
+  public void testStringToLong() {
+    Context context = new ContextBase();
+    SizeBasedTriggeringPolicy policy = new SizeBasedTriggeringPolicy();
+    policy.setContext(context);
+
+    Long result;
+
+    {
+      result = policy.toFileSize("123");
+      assertEquals(new Long("123"), result);
+    }
+    {
+      result = policy.toFileSize("123KB");
+      // = 123 * 1024
+      assertEquals(new Long("125952"), result);
+    }
+    {
+      result = policy.toFileSize("123MB");
+      // = 123 * 1024 * 1024
+      assertEquals(new Long("128974848"), result);
+    }
+    {
+      result = policy.toFileSize("123GB");
+      // = 123 * 1024 * 1024 * 1024
+      assertEquals(new Long("132070244352"), result);
+    }
+
+    {
+      result = policy.toFileSize("123xxxx");
+      // = 123 * 1024 * 1024 * 1024
+      assertEquals(new Long(SizeBasedTriggeringPolicy.DEFAULT_MAX_FILE_SIZE),
+          result);
+      assertEquals(2, context.getStatusManager().getCount());
+    }
 
-	}
+  }
 }



More information about the logback-dev mailing list