1 /* 2 * $Id: TestMuleProxy.java 11376 2008-03-16 17:44:10Z dfeist $ 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 11 package org.mule.tck.testmodels.mule; 12 13 import org.mule.api.MuleException; 14 import org.mule.api.object.ObjectFactory; 15 import org.mule.component.DefaultJavaComponent; 16 17 /** 18 * Makes the underlying POJO service object available for unit testing. 19 */ 20 public class TestMuleProxy extends DefaultJavaComponent 21 { 22 23 public TestMuleProxy(ObjectFactory objectFactory) throws MuleException 24 { 25 super(objectFactory); 26 } 27 28 /** Returns the underlying POJO service object for unit testing. */ 29 public Object getPojoService() throws Exception 30 { 31 return objectFactory.getInstance(); 32 } 33 }