1   /*
2    * $Id: SecureHttpPollingFunctionalTestCase.java 7963 2007-08-21 08:53:15Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  package org.mule.extras.acegi;
11  
12  import org.mule.extras.client.MuleClient;
13  import org.mule.tck.FunctionalTestCase;
14  import org.mule.umo.UMOMessage;
15  
16  public class SecureHttpPollingFunctionalTestCase extends FunctionalTestCase
17  {
18  
19      public void testPollingHttpConnectorSentCredentials() throws Exception
20      {
21          MuleClient client = new MuleClient();
22          UMOMessage result = client.receive("vm://toclient", 5000);
23          assertNotNull(result.getPayload());
24      }
25  
26      protected String getConfigResources()
27      {
28          return "secure-mule-http-config.xml,mule-http-polling-config.xml";
29      }
30  }