directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r774841 - in /directory: apacheds/trunk/server-xml/src/test/java/org/apache/directory/server/ shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/ shared/trunk/ldap/src/main/java/org/apache/dire...
Date Thu, 14 May 2009 16:23:13 GMT
Author: elecharny
Date: Thu May 14 16:23:12 2009
New Revision: 774841

URL: http://svn.apache.org/viewvc?rev=774841&view=rev
Log:
Removed the tabs and replaced them with spaces

Modified:
    directory/apacheds/trunk/server-xml/src/test/java/org/apache/directory/server/SpringServerTest.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/Cancel.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/CancelGrammar.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ResultCodeEnum.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapControlTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapResultTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/abandon/AbandonRequestTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/CancelRequestTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java

Modified: directory/apacheds/trunk/server-xml/src/test/java/org/apache/directory/server/SpringServerTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-xml/src/test/java/org/apache/directory/server/SpringServerTest.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/apacheds/trunk/server-xml/src/test/java/org/apache/directory/server/SpringServerTest.java
(original)
+++ directory/apacheds/trunk/server-xml/src/test/java/org/apache/directory/server/SpringServerTest.java
Thu May 14 16:23:12 2009
@@ -171,38 +171,38 @@
      */
     @Test
     public void testSpringServerJdbmPartition() throws Exception {
-    	// NOTE : This test will only work on systems which have a /tmp temp dir
-    	if ( "/tmp".equals( getTmpDir() ) )
-    	{
-	        ClassLoader classLoader = this.getClass().getClassLoader();
-	        URL configURL = classLoader.getResource( "serverJdbmPartition.xml" );
-	
-	        File configF = new File( configURL.toURI() );
-	        ApplicationContext factory = new FileSystemXmlApplicationContext( configF.toURI().toURL().toString()
);
-	        ApacheDS apacheDS = ( ApacheDS ) factory.getBean( "apacheDS" );
-	        File workingDirFile = new File( configF.getParentFile(), "work" );
-	        apacheDS.getDirectoryService().setWorkingDirectory( workingDirFile );
-	        
-	        // Now, launch the server, and check that the ObjectClass index has been created
in OS' tmp directory
-	        apacheDS.startup();
-	        
-	        File tmpOCdb = new File( getTmpDir(), "objectClass.db" );
-	        assertTrue( tmpOCdb.exists() );
-	
-	        File tmpOClg = new File( getTmpDir(), "objectClass.lg" );
-	        assertTrue( tmpOClg.exists() );
-	        
-	        // Shutdown and cleanup
-	        apacheDS.shutdown();
-	        
-	        // Clean the /tmp/objectClass.* files
-	        tmpOCdb.delete();
-	        tmpOClg.delete();
-    	}
-    	else
-    	{
-    		assertTrue( true );
-    	}
+        // NOTE : This test will only work on systems which have a /tmp temp dir
+        if ( "/tmp".equals( getTmpDir() ) )
+        {
+            ClassLoader classLoader = this.getClass().getClassLoader();
+            URL configURL = classLoader.getResource( "serverJdbmPartition.xml" );
+    
+            File configF = new File( configURL.toURI() );
+            ApplicationContext factory = new FileSystemXmlApplicationContext( configF.toURI().toURL().toString()
);
+            ApacheDS apacheDS = ( ApacheDS ) factory.getBean( "apacheDS" );
+            File workingDirFile = new File( configF.getParentFile(), "work" );
+            apacheDS.getDirectoryService().setWorkingDirectory( workingDirFile );
+            
+            // Now, launch the server, and check that the ObjectClass index has been created
in OS' tmp directory
+            apacheDS.startup();
+            
+            File tmpOCdb = new File( getTmpDir(), "objectClass.db" );
+            assertTrue( tmpOCdb.exists() );
+    
+            File tmpOClg = new File( getTmpDir(), "objectClass.lg" );
+            assertTrue( tmpOClg.exists() );
+            
+            // Shutdown and cleanup
+            apacheDS.shutdown();
+            
+            // Clean the /tmp/objectClass.* files
+            tmpOCdb.delete();
+            tmpOClg.delete();
+        }
+        else
+        {
+            assertTrue( true );
+        }
     }
     
     /**

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/Cancel.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/Cancel.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/Cancel.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/Cancel.java
Thu May 14 16:23:12 2009
@@ -45,9 +45,9 @@
  */
 public class Cancel extends AbstractAsn1Object
 {
-	/** The Id of the the message to cancel */
-	private int cancelId;
-	
+    /** The Id of the the message to cancel */
+    private int cancelId;
+    
     /** Length of the sequence */
     private int cancelSequenceLength;
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/CancelGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/CancelGrammar.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/CancelGrammar.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/cancel/CancelGrammar.java
Thu May 14 16:23:12 2009
@@ -113,28 +113,28 @@
             {
                 public void action( IAsn1Container container ) throws DecoderException
                 {
-	                CancelContainer cancelContainer = ( CancelContainer ) container;
-	                Value value = cancelContainer.getCurrentTLV().getValue();
-	
-		            try
-		            {
-		                int cancelId = IntegerDecoder.parse( value, 0, Integer.MAX_VALUE );
-		
-		                if ( IS_DEBUG )
-		                {
-		                    LOG.debug( "CancelId = " + cancelId );
-		                }
-		
-		                cancelContainer.getCancel().setCancelId( cancelId );
-		                cancelContainer.grammarEndAllowed( true );
-		            }
-		            catch ( IntegerDecoderException e )
-		            {
-		                String msg = "failed to decode the cancelId, the value should be between
0 and 2^31-1, " + 
-		                	"it is '" + StringTools.dumpBytes( value.getData() ) + "'";
-		                LOG.error( msg );
-		                throw new DecoderException( msg );
-		            }
+                    CancelContainer cancelContainer = ( CancelContainer ) container;
+                    Value value = cancelContainer.getCurrentTLV().getValue();
+    
+                    try
+                    {
+                        int cancelId = IntegerDecoder.parse( value, 0, Integer.MAX_VALUE
);
+        
+                        if ( IS_DEBUG )
+                        {
+                            LOG.debug( "CancelId = " + cancelId );
+                        }
+        
+                        cancelContainer.getCancel().setCancelId( cancelId );
+                        cancelContainer.grammarEndAllowed( true );
+                    }
+                    catch ( IntegerDecoderException e )
+                    {
+                        String msg = "failed to decode the cancelId, the value should be
between 0 and 2^31-1, " + 
+                            "it is '" + StringTools.dumpBytes( value.getData() ) + "'";
+                        LOG.error( msg );
+                        throw new DecoderException( msg );
+                    }
                 }
             });
     }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ResultCodeEnum.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ResultCodeEnum.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ResultCodeEnum.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ResultCodeEnum.java
Thu May 14 16:23:12 2009
@@ -986,7 +986,7 @@
      */
     public static final Set<ResultCodeEnum> BIND_CODES;
     static
-    { 	
+    {
         Set<ResultCodeEnum> set = new HashSet<ResultCodeEnum>();
         set.add( ResultCodeEnum.BUSY );
         set.add( ResultCodeEnum.OTHER );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java
Thu May 14 16:23:12 2009
@@ -48,10 +48,10 @@
  */
 public class CancelRequest extends ExtendedRequestImpl
 {
-	/** The serial version UUID */
-	private static final long serialVersionUID = 1L;
+    /** The serial version UUID */
+    private static final long serialVersionUID = 1L;
 
-	/** A logger for this class */
+    /** A logger for this class */
     private static final Logger LOG = LoggerFactory.getLogger( CancelRequest.class );
 
     /** The cancelId of the request to be canceled */

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java
Thu May 14 16:23:12 2009
@@ -31,14 +31,14 @@
  */
 public class CancelResponse extends ExtendedResponseImpl
 {
-	/** The serial version UUID */
-	private static final long serialVersionUID = 1L;
+    /** The serial version UUID */
+    private static final long serialVersionUID = 1L;
 
-	/**
-	 * Create a new CancelResponse object
-	 * @param messageId The messageId
-	 * @param rcode the result code
-	 */
+    /**
+     * Create a new CancelResponse object
+     * @param messageId The messageId
+     * @param rcode the result code
+     */
     public CancelResponse( int messageId, ResultCodeEnum rcode )
     {
         super( messageId, null );
@@ -81,7 +81,7 @@
      */
     public byte[] getResponse()
     {
-    	return StringTools.EMPTY_BYTES;
+        return StringTools.EMPTY_BYTES;
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java
Thu May 14 16:23:12 2009
@@ -43,10 +43,10 @@
  */
 public class CertGenerationRequest extends ExtendedRequestImpl
 {
-	/** The serial version UUID */
-	private static final long serialVersionUID = 1L;
+    /** The serial version UUID */
+    private static final long serialVersionUID = 1L;
 
-	private CertGenerationObject certGenObj;
+    private CertGenerationObject certGenObj;
 
     private static final Logger LOG = LoggerFactory.getLogger( CertGenerationRequest.class
);
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java
Thu May 14 16:23:12 2009
@@ -31,10 +31,10 @@
  */
 public class CertGenerationResponse extends ExtendedResponseImpl
 {
-	/** The serial version UUID */
-	private static final long serialVersionUID = 1L;
-	
-	/** The CertGenerationResponse OID */
+    /** The serial version UUID */
+    private static final long serialVersionUID = 1L;
+    
+    /** The CertGenerationResponse OID */
     public static final String EXTENSION_OID = "1.3.6.1.4.1.18060.0.1.7";
 
     public CertGenerationResponse(int messageId, ResultCodeEnum rcode)

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java
Thu May 14 16:23:12 2009
@@ -631,7 +631,7 @@
                 // for 99.99% of all DN (blind bet, of course ...) 
                 for ( char c:chars )
                 {
-                    if ( ( c >= 0 ) && ( c < DN_ESCAPED_CHARS.length ) &&
DN_ESCAPED_CHARS[ c ] )                     	
+                    if ( ( c >= 0 ) && ( c < DN_ESCAPED_CHARS.length ) &&
DN_ESCAPED_CHARS[ c ] )
                     {
                         escaped = true;
                         break;

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapControlTest.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapControlTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapControlTest.java
Thu May 14 16:23:12 2009
@@ -40,7 +40,7 @@
     /**
      * Test the decoding of a Request with controls
      */
-	@Test
+    @Test
     public void testDecodeRequestWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -150,7 +150,7 @@
     /**
      * Test the decoding of a Request with null OID controls
      */
-	@Test
+    @Test
     public void testDecodeRequestWithControlsNullOID()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -194,7 +194,7 @@
     /**
      * Test the decoding of a Request with bad OID controls
      */
-	@Test
+    @Test
     public void testDecodeRequestWithControlsBadOID()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -238,7 +238,7 @@
     /**
      * Test the decoding of a Request with bad criticality
      */
-	@Test
+    @Test
     public void testDecodeRequestWithControlsBadCriticality()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapResultTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapResultTest.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapResultTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapResultTest.java
Thu May 14 16:23:12 2009
@@ -53,7 +53,7 @@
     /**
      * Test the decoding of a AddResponse with no LdapResult
      */
-	@Test
+    @Test
     public void testDecodeAddResponseEmptyResultCode()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -90,8 +90,8 @@
     /**
      * Test the decoding of a AddResponse with no LdapResult
      */
-	@Test
-	public void testDecodeAddResponseEmptyResultCodeAbove90()
+    @Test
+    public void testDecodeAddResponseEmptyResultCodeAbove90()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -127,7 +127,7 @@
     /**
      * Test the decoding of a AddResponse with all the different result codes
      */
-	@Test
+    @Test
     public void testDecodeAddResponseEmptyResultCodesOK()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -172,7 +172,7 @@
     /**
      * Test the decoding of a AddResponse with no matched DN
      */
-	@Test
+    @Test
     public void testDecodeAddResponseEmptyResultCodeNoMatchedDN()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -209,7 +209,7 @@
     /**
      * Test the decoding of a AddResponse with no error message
      */
-	@Test
+    @Test
     public void testDecodeAddResponseEmptyResultCodeNoErrorMsg()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -247,7 +247,7 @@
     /**
      * Test the decoding of a AddResponse with a valid LdapResult
      */
-	@Test
+    @Test
     public void testDecodeAddResponseEmptyResultCodeOK()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -311,7 +311,7 @@
     /**
      * Test the decoding of a AddResponse with a valid LdapResult with referral
      */
-	@Test
+    @Test
     public void testDecodeAddResponseEmptyResultCodeOKReferral()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -381,7 +381,7 @@
     /**
      * Test the decoding of a AddResponse with a valid LdapResult with referrals
      */
-	@Test
+    @Test
     public void testDecodeAddResponseEmptyResultCodeOKReferrals()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -457,7 +457,7 @@
      * Test the decoding of a AddResponse with a valid LdapResult with referrals
      * and an empty referral
      */
-	@Test
+    @Test
     public void testDecodeAddResponseEmptyResultCodeEmptyReferral()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -532,7 +532,7 @@
      * Test the decoding of a AddResponse with a valid LdapResult and an invalid
      * transition after the referral sequence
      */
-	@Test
+    @Test
     public void testDecodeAddResponseEmptyResultCodeEmptyReferrals()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/abandon/AbandonRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/abandon/AbandonRequestTest.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/abandon/AbandonRequestTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/abandon/AbandonRequestTest.java
Thu May 14 16:23:12 2009
@@ -50,7 +50,7 @@
     /**
      * Test the decoding of a AbandonRequest with controls
      */
-	@Test
+    @Test
     public void testDecodeAbandonRequestWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -159,7 +159,7 @@
     /**
      * Test the decoding of a AbandonRequest with no controls
      */
-	@Test
+    @Test
     public void testDecodeAbandonRequestNoControlsHighMessageId()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -222,7 +222,7 @@
     /**
      * Test the decoding of a AbandonRequest with a null messageId
      */
-	@Test
+    @Test
     public void testDecodeAbandonRequestNoMessageId()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
@@ -258,7 +258,7 @@
     /**
      * Test the decoding of a AbandonRequest with a bad Message Id
      */
-	@Test
+    @Test
     public void testDecodeAbandonRequestBadMessageId()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/CancelRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/CancelRequestTest.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/CancelRequestTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/CancelRequestTest.java
Thu May 14 16:23:12 2009
@@ -45,10 +45,10 @@
  */
 public class CancelRequestTest
 {
-	/**
-	 * Test the normal Cancel message
-	 */
-	@Test
+    /**
+     * Test the normal Cancel message
+     */
+    @Test
     public void testDecodeCancel()
     {
         Asn1Decoder cancelDecoder = new CancelDecoder();
@@ -69,7 +69,7 @@
         // Decode a Cancel message
         try
         {
-        	cancelDecoder.decode( stream, cancelContainer );
+            cancelDecoder.decode( stream, cancelContainer );
         }
         catch ( DecoderException de )
         {
@@ -97,11 +97,11 @@
         }
     }
 
-	
-	/**
-	 * Test a Cancel message with no cancelId
-	 */
-	@Test
+    
+    /**
+     * Test a Cancel message with no cancelId
+     */
+    @Test
     public void testDecodeCancelNoCancelId()
     {
         Asn1Decoder cancelDecoder = new CancelDecoder();
@@ -119,20 +119,20 @@
         // Decode a Cancel message
         try
         {
-        	cancelDecoder.decode( stream, cancelContainer );
-        	fail( "CancelID expected" );
+            cancelDecoder.decode( stream, cancelContainer );
+            fail( "CancelID expected" );
         }
         catch ( DecoderException de )
         {
-        	assertTrue( true );
+            assertTrue( true );
         }
     }
 
-	
-	/**
-	 * Test a Cancel message with an empty cancelId
-	 */
-	@Test
+    
+    /**
+     * Test a Cancel message with an empty cancelId
+     */
+    @Test
     public void testDecodeCancelEmptyCancelId()
     {
         Asn1Decoder cancelDecoder = new CancelDecoder();
@@ -151,20 +151,20 @@
         // Decode a Cancel message
         try
         {
-        	cancelDecoder.decode( stream, cancelContainer );
-        	fail( "CancelID expected" );
+            cancelDecoder.decode( stream, cancelContainer );
+            fail( "CancelID expected" );
         }
         catch ( DecoderException de )
         {
-        	assertTrue( true );
+            assertTrue( true );
         }
     }
 
-	
-	/**
-	 * Test a Cancel message with a bad cancelId
-	 */
-	@Test
+    
+    /**
+     * Test a Cancel message with a bad cancelId
+     */
+    @Test
     public void testDecodeCancelBadCancelId()
     {
         Asn1Decoder cancelDecoder = new CancelDecoder();
@@ -183,20 +183,20 @@
         // Decode a Cancel message
         try
         {
-        	cancelDecoder.decode( stream, cancelContainer );
-        	fail( "CancelID expected" );
+            cancelDecoder.decode( stream, cancelContainer );
+            fail( "CancelID expected" );
         }
         catch ( DecoderException de )
         {
-        	assertTrue( true );
+            assertTrue( true );
         }
     }
 
-	
-	/**
-	 * Test a Cancel message with more than one cancelId
-	 */
-	@Test
+    
+    /**
+     * Test a Cancel message with more than one cancelId
+     */
+    @Test
     public void testDecodeCancelMoreThanOneCancelId()
     {
         Asn1Decoder cancelDecoder = new CancelDecoder();
@@ -216,12 +216,12 @@
         // Decode a Cancel message
         try
         {
-        	cancelDecoder.decode( stream, cancelContainer );
-        	fail( "CancelID expected" );
+            cancelDecoder.decode( stream, cancelContainer );
+            fail( "CancelID expected" );
         }
         catch ( DecoderException de )
         {
-        	assertTrue( true );
+            assertTrue( true );
         }
     }
 }

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java?rev=774841&r1=774840&r2=774841&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java
Thu May 14 16:23:12 2009
@@ -44,7 +44,7 @@
  */
 public class StoredProcedureTest
 {
-	@Test
+    @Test
     public void testDecodeStoredProcedureNParams()
     {
         Asn1Decoder storedProcedureDecoder = new StoredProcedureDecoder();
@@ -124,7 +124,7 @@
         }
     }
 
-	@Test
+    @Test
     public void testDecodeStoredProcedureNoParam()
     {
         Asn1Decoder storedProcedureDecoder = new StoredProcedureDecoder();
@@ -180,8 +180,8 @@
         }
     }
 
-	
-	@Test
+    
+    @Test
     public void testDecodeStoredProcedureOneParam()
     {
         Asn1Decoder storedProcedureDecoder = new StoredProcedureDecoder();



Mime
View raw message