directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r515159 - in /directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test: java/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/ resources/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/
Date Tue, 06 Mar 2007 15:43:36 GMT
Author: pamarcelot
Date: Tue Mar  6 07:43:35 2007
New Revision: 515159

URL: http://svn.apache.org/viewvc?view=rev&rev=515159
Log:
Forgot to add a test case for AbandonRequest in the last fix for DIRSTUDIO-1 (DSML Parser
does not throw an exception when it doesn't find a requestID attribute when processing=parallel
and responseOrder=unordered).

Added:
    directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/resources/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/request_with_needed_requestID.xml
Modified:
    directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/java/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/AbandonRequestTest.java

Modified: directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/java/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/AbandonRequestTest.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/java/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/AbandonRequestTest.java?view=diff&rev=515159&r1=515158&r2=515159
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/java/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/AbandonRequestTest.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/java/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/AbandonRequestTest.java
Tue Mar  6 07:43:35 2007
@@ -254,4 +254,15 @@
         assertEquals( "1.2.840.113556.1.4.456", control.getControlType() );
         assertEquals( StringTools.EMPTY_BYTES, control.getControlValue() );
     }
+    
+    
+    /**
+     * Test parsing of a request with a needed requestID attribute
+     * 
+     * DIRSTUDIO-1
+     */
+    public void testRequestWithNeededRequestId()
+    {
+        testParsingFail( AbandonRequestTest.class, "request_with_needed_requestID.xml" );
+    }
 }

Added: directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/resources/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/request_with_needed_requestID.xml
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/resources/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/request_with_needed_requestID.xml?view=auto&rev=515159
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/resources/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/request_with_needed_requestID.xml
(added)
+++ directory/ldapstudio/trunk/ldapstudio-dsml-parser/src/test/resources/org/apache/directory/ldapstudio/dsmlv2/abandonRequest/request_with_needed_requestID.xml
Tue Mar  6 07:43:35 2007
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<batchRequest processing="parallel" responseOrder="unordered" xmlns="urn:oasis:names:tc:DSML:2.0:core">
+	<abandonRequest abandonID="123">
+	</abandonRequest>
+</batchRequest>
\ No newline at end of file



Mime
View raw message