View Javadoc

1   /*
2    * $Id: HttpProxyBuilderTestCase.java 21749 2011-04-29 15:20:47Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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  
11  package org.mule.transport.http.construct.builder;
12  
13  import org.mule.api.MuleException;
14  import org.mule.tck.AbstractMuleTestCase;
15  import org.mule.transport.http.construct.HttpProxy;
16  
17  public class HttpProxyBuilderTestCase extends AbstractMuleTestCase
18  {
19      public void testConfigurationNoCache() throws MuleException
20      {
21          final HttpProxy httpProxy = new HttpProxyBuilder().name("test-http-proxy-no-cache")
22              .inboundAddress("test://foo")
23              .outboundAddress("test://bar")
24              .build(muleContext);
25  
26          assertEquals("test-http-proxy-no-cache", httpProxy.getName());
27      }
28  
29      // TODO test configuration with cache
30  }