View Javadoc

1   /*
2    * $Id: CallVoidReturnTestCase.java 19530 2010-09-10 01:03:13Z dzapata $
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  package org.mule.module.ibeans.annotations;
11  
12  import org.ibeans.annotation.IntegrationBean;
13  import org.junit.Test;
14  
15  public class CallVoidReturnTestCase extends AbstractIBeansTestCase
16  {
17      @SuppressWarnings("unused")
18      @IntegrationBean
19      private SearchIBean search;
20  
21      @Test
22      public void testReturnVoid() throws Exception
23      {
24          if (isOffline(getClass().getName() + ".testReturnVoid"))
25          {
26              return;
27          }
28  
29          //we just need to test that the call doesn't fail
30          search.searchGoogleAndReturnVoid("foo");
31      }
32  
33  }