Expose audience collection on security policy.
[shibboleth/cpp-opensaml.git] / samltest / saml1 / profile / SAML1PolicyTest.h
index 82660b1..49554e5 100644 (file)
@@ -54,7 +54,7 @@ public:
             TSM_ASSERT_THROWS("Policy should have tripped on AudienceRestriction", m_policy->evaluate(*assertion.get()), SecurityPolicyException);
 
             auto_ptr_XMLCh recipient("https://sp.example.org");
-            m_policy->setRecipient(recipient.get());
+            m_policy->getAudiences().push_back(recipient.get());
             m_policy->evaluate(*assertion.get());
         }
         catch (exception& ex) {