directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r604812 - in /directory/studio/trunk/studio-dsml-parser/src/test: java/org/apache/directory/studio/dsmlv2/searchRequest/SearchRequestTest.java resources/org/apache/directory/studio/dsmlv2/searchRequest/request_with_subentries_control.xml
Date Mon, 17 Dec 2007 10:10:50 GMT
Author: pamarcelot
Date: Mon Dec 17 02:10:48 2007
New Revision: 604812

URL: http://svn.apache.org/viewvc?rev=604812&view=rev
Log:
Removed the test on "subentries control".

Removed:
    directory/studio/trunk/studio-dsml-parser/src/test/resources/org/apache/directory/studio/dsmlv2/searchRequest/request_with_subentries_control.xml
Modified:
    directory/studio/trunk/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchRequest/SearchRequestTest.java

Modified: directory/studio/trunk/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchRequest/SearchRequestTest.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchRequest/SearchRequestTest.java?rev=604812&r1=604811&r2=604812&view=diff
==============================================================================
--- directory/studio/trunk/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchRequest/SearchRequestTest.java
(original)
+++ directory/studio/trunk/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchRequest/SearchRequestTest.java
Mon Dec 17 02:10:48 2007
@@ -2322,40 +2322,6 @@
 
 
     /**
-     * Test parsing of a request with a SubEntries Control
-     */
-    public void testRequestWithSubEntriesControl()
-    {
-        Dsmlv2Parser parser = null;
-        try
-        {
-            parser = new Dsmlv2Parser();
-
-            parser
-                .setInputFile( SearchRequestTest.class.getResource( "request_with_subentries_control.xml"
).getFile() );
-
-            parser.parse();
-        }
-        catch ( Exception e )
-        {
-            fail( e.getMessage() );
-        }
-
-        SearchRequest searchRequest = ( SearchRequest ) parser.getBatchRequest().getCurrentRequest();
-
-        assertEquals( 1, searchRequest.getControls().size() );
-
-        Control control = searchRequest.getCurrentControl();
-
-        assertTrue( control.getCriticality() );
-
-        assertEquals( "1.3.6.1.4.1.4203.1.10.1", control.getControlType() );
-
-        assertEquals( "Some text", StringTools.utf8ToString( ( byte[] ) control.getControlValue()
) );
-    }
-
-
-    /**
      * Test parsing of a request with a needed requestID attribute
      * 
      * DIRSTUDIO-1



Mime
View raw message