You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by he...@apache.org on 2007/01/09 22:46:03 UTC

svn commit: r494608 - /velocity/engine/trunk/src/test/org/apache/velocity/test/issues/VelTools66TestCase.java

Author: henning
Date: Tue Jan  9 13:46:02 2007
New Revision: 494608

URL: http://svn.apache.org/viewvc?view=rev&rev=494608
Log:
remove tabs, reformat code.

Modified:
    velocity/engine/trunk/src/test/org/apache/velocity/test/issues/VelTools66TestCase.java

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/issues/VelTools66TestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/issues/VelTools66TestCase.java?view=diff&rev=494608&r1=494607&r2=494608
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/issues/VelTools66TestCase.java (original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/issues/VelTools66TestCase.java Tue Jan  9 13:46:02 2007
@@ -41,7 +41,7 @@
         extends BaseTestCase
 {
     public VelTools66TestCase(final String name)
-    	throws Exception
+            throws Exception
     {
         super(name);
     }
@@ -64,58 +64,58 @@
     
     public void tearDown()
     {
-	System.setSecurityManager(null);
+        System.setSecurityManager(null);
     }
 
     public void testVelTools66()
-    	throws Exception
+            throws Exception
     {
-	Method verifyMethod = TestInterface.class.getMethod("getTestValue", new Class[0]);
-	
-	
-	RuntimeInstance ri = new RuntimeInstance();
-	Introspector introspector = ri.getIntrospector();
-	
-	Method testMethod = introspector.getMethod(TestObject.class, "getTestValue", new Object[0]);
-	assertNotNull(testMethod);
-	assertEquals("Method object does not match!", verifyMethod, testMethod);
+        Method verifyMethod = TestInterface.class.getMethod("getTestValue", new Class[0]);
+        
+        
+        RuntimeInstance ri = new RuntimeInstance();
+        Introspector introspector = ri.getIntrospector();
+        
+        Method testMethod = introspector.getMethod(TestObject.class, "getTestValue", new Object[0]);
+        assertNotNull(testMethod);
+        assertEquals("Method object does not match!", verifyMethod, testMethod);
     }
     
     public static interface TestInterface
     {
-	String getTestValue();
-	
-	void setTestValue(String testValue);
+        String getTestValue();
+        
+        void setTestValue(String testValue);
     }
     
     public static final class TestObject
-    	implements TestInterface
+            implements TestInterface
     {
-	String testValue = null;
-	
-	public TestObject()
-	{
-	}
-	
-	public String getTestValue()
-	{
-	    return testValue;
-	}
-	
-	public void setTestValue(final String testValue)
-	{
-	    this.testValue = testValue;
-	}
+        String testValue = null;
+        
+        public TestObject()
+        {
+        }
+        
+        public String getTestValue()
+        {
+            return testValue;
+        }
+        
+        public void setTestValue(final String testValue)
+        {
+            this.testValue = testValue;
+        }
     }
     
     public static final class TestSecurityManager extends SecurityManager
     {
         private final Class clazz = TestObject.class;
 
-	public TestSecurityManager()
-	{
-	    super();
-	}
+        public TestSecurityManager()
+        {
+            super();
+        }
 
         public void checkMemberAccess(final Class c, final int i)
         {
@@ -123,7 +123,7 @@
             
             if (c.equals(clazz))
             {
-        	throw new AccessControlException("You are not allowed to access TestObject directly!");
+                throw new AccessControlException("You are not allowed to access TestObject directly!");
             }
         }