Fix linefeeds
[shibboleth/cpp-opensaml.git] / samltest / saml2 / core / impl / IDPEntry20Test.h
index f51d740..5519b7a 100644 (file)
@@ -1,77 +1,77 @@
-/*\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/saml2/core/Protocols.h>\r
-#include <saml/util/SAMLConstants.h>\r
-\r
-using namespace opensaml::saml2p;\r
-using namespace opensaml::saml2;\r
-\r
-class IDPEntry20Test : public CxxTest::TestSuite, public SAMLObjectBaseTestCase {\r
-    XMLCh* expectedProviderID; \r
-    XMLCh* expectedName; \r
-    XMLCh* expectedLoc;\r
-\r
-public:\r
-    void setUp() {\r
-        expectedProviderID = XMLString::transcode("urn:string:providerid");; \r
-        expectedName = XMLString::transcode("Example IdP"); \r
-        expectedLoc = XMLString::transcode("http://idp.example.org/endpoint"); \r
-\r
-        singleElementFile = data_path + "saml2/core/impl/IDPEntry.xml";\r
-        singleElementOptionalAttributesFile = data_path + "saml2/core/impl/IDPEntryOptionalAttributes.xml";\r
-        SAMLObjectBaseTestCase::setUp();\r
-    }\r
-    \r
-    void tearDown() {\r
-        XMLString::release(&expectedProviderID);\r
-        XMLString::release(&expectedName);\r
-        XMLString::release(&expectedLoc);\r
-        SAMLObjectBaseTestCase::tearDown();\r
-    }\r
-\r
-    void testSingleElementUnmarshall() {\r
-        auto_ptr<XMLObject> xo(unmarshallElement(singleElementFile));\r
-        IDPEntry* entry = dynamic_cast<IDPEntry*>(xo.get());\r
-        TS_ASSERT(entry!=NULL);\r
-        assertEquals("ProviderID attribute", expectedProviderID, entry->getProviderID());\r
-    }\r
-\r
-    void testSingleElementOptionalAttributesUnmarshall() {\r
-        auto_ptr<XMLObject> xo(unmarshallElement(singleElementOptionalAttributesFile));\r
-        IDPEntry* entry = dynamic_cast<IDPEntry*>(xo.get());\r
-        TS_ASSERT(entry!=NULL);\r
-        assertEquals("ProviderID attribute", expectedProviderID, entry->getProviderID());\r
-        assertEquals("Name attribute", expectedName, entry->getName());\r
-        assertEquals("Loc attribute", expectedLoc, entry->getLoc());\r
-    }\r
-\r
-    void testSingleElementMarshall() {\r
-        IDPEntry* entry=IDPEntryBuilder::buildIDPEntry();\r
-        entry->setProviderID(expectedProviderID);\r
-        assertEquals(expectedDOM, entry);\r
-    }\r
-\r
-    void testSingleElementOptionalAttributesMarshall() {\r
-        IDPEntry* entry=IDPEntryBuilder::buildIDPEntry();\r
-        entry->setProviderID(expectedProviderID);\r
-        entry->setName(expectedName);\r
-        entry->setLoc(expectedLoc);\r
-        assertEquals(expectedOptionalAttributesDOM, entry);\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/saml2/core/Protocols.h>
+#include <saml/util/SAMLConstants.h>
+
+using namespace opensaml::saml2p;
+using namespace opensaml::saml2;
+
+class IDPEntry20Test : public CxxTest::TestSuite, public SAMLObjectBaseTestCase {
+    XMLCh* expectedProviderID; 
+    XMLCh* expectedName; 
+    XMLCh* expectedLoc;
+
+public:
+    void setUp() {
+        expectedProviderID = XMLString::transcode("urn:string:providerid");; 
+        expectedName = XMLString::transcode("Example IdP"); 
+        expectedLoc = XMLString::transcode("http://idp.example.org/endpoint"); 
+
+        singleElementFile = data_path + "saml2/core/impl/IDPEntry.xml";
+        singleElementOptionalAttributesFile = data_path + "saml2/core/impl/IDPEntryOptionalAttributes.xml";
+        SAMLObjectBaseTestCase::setUp();
+    }
+    
+    void tearDown() {
+        XMLString::release(&expectedProviderID);
+        XMLString::release(&expectedName);
+        XMLString::release(&expectedLoc);
+        SAMLObjectBaseTestCase::tearDown();
+    }
+
+    void testSingleElementUnmarshall() {
+        auto_ptr<XMLObject> xo(unmarshallElement(singleElementFile));
+        IDPEntry* entry = dynamic_cast<IDPEntry*>(xo.get());
+        TS_ASSERT(entry!=NULL);
+        assertEquals("ProviderID attribute", expectedProviderID, entry->getProviderID());
+    }
+
+    void testSingleElementOptionalAttributesUnmarshall() {
+        auto_ptr<XMLObject> xo(unmarshallElement(singleElementOptionalAttributesFile));
+        IDPEntry* entry = dynamic_cast<IDPEntry*>(xo.get());
+        TS_ASSERT(entry!=NULL);
+        assertEquals("ProviderID attribute", expectedProviderID, entry->getProviderID());
+        assertEquals("Name attribute", expectedName, entry->getName());
+        assertEquals("Loc attribute", expectedLoc, entry->getLoc());
+    }
+
+    void testSingleElementMarshall() {
+        IDPEntry* entry=IDPEntryBuilder::buildIDPEntry();
+        entry->setProviderID(expectedProviderID);
+        assertEquals(expectedDOM, entry);
+    }
+
+    void testSingleElementOptionalAttributesMarshall() {
+        IDPEntry* entry=IDPEntryBuilder::buildIDPEntry();
+        entry->setProviderID(expectedProviderID);
+        entry->setName(expectedName);
+        entry->setLoc(expectedLoc);
+        assertEquals(expectedOptionalAttributesDOM, entry);
+    }
+
+};