View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.guice;
8   
9   import org.mule.api.registry.Registry;
10  import org.mule.registry.AbstractRegistryTestCase;
11  
12  import com.google.inject.AbstractModule;
13  import com.google.inject.Guice;
14  
15  public class GuiceRegistryTestCase extends AbstractRegistryTestCase
16  {
17      @Override
18      public Registry getRegistry()
19      {
20          return new GuiceRegistry(Guice.createInjector(new EmptyModule()), muleContext);
21      }
22  
23      class EmptyModule extends AbstractModule
24      {
25          @Override
26          protected void configure()
27          {
28  
29          }
30      }
31  }