1   /*
2    * AspectHelperTest.java
3    * Created on 10 Июнь 2006 г., 22:48
4    */
5   
6   package org.weda.enhance;
7   
8   import org.weda.test.WedaTestCase;
9   import org.weda.enhance.impl.AspectHelperImpl;
10  
11  /**
12   *
13   * @author Mikhail Titov
14   */
15  public class AspectHelperTest extends WedaTestCase {
16      public AspectHelperTest(String name) throws Exception{
17          super(name);
18      }
19      
20      public void test_service() throws Exception {
21          assertNotNull(AspectHelperImpl.INSTANCE);
22          AspectHelper serv = 
23                  (AspectHelper)registry.getService(AspectHelper.class);
24          Object serv2 = 
25                  serv.getHivemindObject("service:"+AspectHelper.class.getName());
26          assertSame(serv, serv2);
27      }
28  }