1 16 17 package org.springframework.context.access; 18 19 import junit.framework.TestCase; 20 21 import org.springframework.beans.factory.access.BeanFactoryLocator; 22 23 26 public class DefaultLocatorFactoryTests extends TestCase { 27 28 31 public void testGetInstance() { 32 BeanFactoryLocator bf = DefaultLocatorFactory.getInstance(); 33 BeanFactoryLocator bf2 = DefaultLocatorFactory.getInstance(); 34 assertTrue(bf.equals(bf2)); 35 } 36 37 40 public void testGetInstanceString() { 41 BeanFactoryLocator bf = DefaultLocatorFactory.getInstance("my-bean-refs.xml"); 42 BeanFactoryLocator bf2 = DefaultLocatorFactory.getInstance("my-bean-refs.xml"); 43 assertTrue(bf.equals(bf2)); 44 } 45 } 46 | Popular Tags |