Fix linefeeds
[shibboleth/cpp-opensaml.git] / samltest / saml1 / core / impl / AttributeDesignatorTest.h
index 9f09fc2..839bb2b 100644 (file)
@@ -1,66 +1,66 @@
-/*\r
- *  Copyright 2001-2006 Internet2\r
- * \r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include "internal.h"\r
-#include <saml/saml1/core/Assertions.h>\r
-\r
-using namespace opensaml::saml1;\r
-\r
-class AttributeDesignatorTest : public CxxTest::TestSuite, public SAMLObjectBaseTestCase {\r
-    XMLCh* expectedAttributeName;\r
-    XMLCh* expectedAttributeNamespace;\r
-\r
-public:\r
-    void setUp() {\r
-        expectedAttributeName=XMLString::transcode("AttributeName");\r
-        expectedAttributeNamespace=XMLString::transcode("namespace");\r
-        singleElementFile = data_path + "saml1/core/impl/singleAttributeDesignator.xml";\r
-        singleElementOptionalAttributesFile = data_path + "saml1/core/impl/singleAttributeDesignatorAttributes.xml";\r
-        SAMLObjectBaseTestCase::setUp();\r
-    }\r
-    \r
-    void tearDown() {\r
-        XMLString::release(&expectedAttributeName);\r
-        XMLString::release(&expectedAttributeNamespace);\r
-        SAMLObjectBaseTestCase::tearDown();\r
-    }\r
-\r
-    void testSingleElementUnmarshall() {\r
-        auto_ptr<XMLObject> xo(unmarshallElement(singleElementFile));\r
-        AttributeDesignator& ad = dynamic_cast<AttributeDesignator&>(*xo.get());\r
-        TSM_ASSERT("AttributeName", ad.getAttributeName()==NULL);\r
-        TSM_ASSERT("AttributeNamespace", ad.getAttributeNamespace()==NULL);\r
-    }\r
-\r
-    void testSingleElementOptionalAttributesUnmarshall() {\r
-        auto_ptr<XMLObject> xo(unmarshallElement(singleElementOptionalAttributesFile));\r
-        AttributeDesignator& ad = dynamic_cast<AttributeDesignator&>(*xo.get());\r
-        assertEquals("AttributeName", expectedAttributeName, ad.getAttributeName());\r
-        assertEquals("AttributeNamespace", expectedAttributeNamespace, ad.getAttributeNamespace());\r
-    }\r
-\r
-    void testSingleElementMarshall() {\r
-        assertEquals(expectedDOM, AttributeDesignatorBuilder::buildAttributeDesignator());\r
-    }\r
-\r
-    void testSingleElementOptionalAttributesMarshall() {\r
-        AttributeDesignator* ad=AttributeDesignatorBuilder::buildAttributeDesignator();\r
-        ad->setAttributeName(expectedAttributeName);\r
-        ad->setAttributeNamespace(expectedAttributeNamespace);\r
-        assertEquals(expectedOptionalAttributesDOM, ad);\r
-    }\r
-\r
-};\r
+/*
+ *  Copyright 2001-2006 Internet2
+ * 
+ * Licensed 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.
+ */
+
+#include "internal.h"
+#include <saml/saml1/core/Assertions.h>
+
+using namespace opensaml::saml1;
+
+class AttributeDesignatorTest : public CxxTest::TestSuite, public SAMLObjectBaseTestCase {
+    XMLCh* expectedAttributeName;
+    XMLCh* expectedAttributeNamespace;
+
+public:
+    void setUp() {
+        expectedAttributeName=XMLString::transcode("AttributeName");
+        expectedAttributeNamespace=XMLString::transcode("namespace");
+        singleElementFile = data_path + "saml1/core/impl/singleAttributeDesignator.xml";
+        singleElementOptionalAttributesFile = data_path + "saml1/core/impl/singleAttributeDesignatorAttributes.xml";
+        SAMLObjectBaseTestCase::setUp();
+    }
+    
+    void tearDown() {
+        XMLString::release(&expectedAttributeName);
+        XMLString::release(&expectedAttributeNamespace);
+        SAMLObjectBaseTestCase::tearDown();
+    }
+
+    void testSingleElementUnmarshall() {
+        auto_ptr<XMLObject> xo(unmarshallElement(singleElementFile));
+        AttributeDesignator& ad = dynamic_cast<AttributeDesignator&>(*xo.get());
+        TSM_ASSERT("AttributeName", ad.getAttributeName()==NULL);
+        TSM_ASSERT("AttributeNamespace", ad.getAttributeNamespace()==NULL);
+    }
+
+    void testSingleElementOptionalAttributesUnmarshall() {
+        auto_ptr<XMLObject> xo(unmarshallElement(singleElementOptionalAttributesFile));
+        AttributeDesignator& ad = dynamic_cast<AttributeDesignator&>(*xo.get());
+        assertEquals("AttributeName", expectedAttributeName, ad.getAttributeName());
+        assertEquals("AttributeNamespace", expectedAttributeNamespace, ad.getAttributeNamespace());
+    }
+
+    void testSingleElementMarshall() {
+        assertEquals(expectedDOM, AttributeDesignatorBuilder::buildAttributeDesignator());
+    }
+
+    void testSingleElementOptionalAttributesMarshall() {
+        AttributeDesignator* ad=AttributeDesignatorBuilder::buildAttributeDesignator();
+        ad->setAttributeName(expectedAttributeName);
+        ad->setAttributeNamespace(expectedAttributeNamespace);
+        assertEquals(expectedOptionalAttributesDOM, ad);
+    }
+
+};