1 15 package org.apache.hivemind.impl; 16 17 import org.apache.hivemind.test.HiveMindTestCase; 18 19 24 public class TestServiceInterceptorContributionImpl extends HiveMindTestCase 25 { 26 private static final String NAME = "SomeName"; 27 private static final String FACTORY_ID = "SomeFactoryId"; 28 29 33 public void testNameDefault() 34 { 35 final ServiceInterceptorContributionImpl impl = new ServiceInterceptorContributionImpl(); 36 impl.setFactoryServiceId( FACTORY_ID ); 37 assertEquals( FACTORY_ID, impl.getName() ); 38 } 39 40 44 public void testNameOverride() 45 { 46 final ServiceInterceptorContributionImpl impl = new ServiceInterceptorContributionImpl(); 47 impl.setFactoryServiceId( FACTORY_ID ); 48 impl.setName( NAME ); 49 assertEquals( NAME, impl.getName() ); 50 } 51 } 52 | Popular Tags |