test_class.declarator: classUnderTest = null
test_class.modifier: private
test_class.original_string: private IWikiTableConfigurationFactory classUnderTest = null;
test_class.type: IWikiTableConfigurationFactory
test_class.var_name: classUnderTest
test_class.file: sql12/fw/src/test/java/net/sourceforge/squirrel_sql/fw/gui/action/wikiTable/WikiTableConfigurationFactoryTest.java
test_class.identifier: WikiTableConfigurationFactoryTest
test_class.superclass: extends BaseSQuirreLJUnit4TestCase
test_case.body: @Test
  	public void testGetConfigurations() {
  		
  		IWikiTableConfiguration mockConfigA = mockHelper.createMock(IWikiTableConfiguration.class);
  		expect(mockConfigA.getName()).andStubReturn("A");
  		expect(mockConfigA.isReadOnly()).andStubReturn(true);
  		expect(mockConfigA.clone()).andStubReturn(mockConfigA);
  		
  		IWikiTableConfiguration mockConfigB = mockHelper.createMock(IWikiTableConfiguration.class);
  		expect(mockConfigB.getName()).andStubReturn("B");
  		expect(mockConfigB.isReadOnly()).andStubReturn(true);
  		expect(mockConfigB.clone()).andStubReturn(mockConfigB);
  		mockHelper.replayAll();
  		
  		classUnderTest.addBuilInConfiguration(mockConfigA);
  		classUnderTest.addBuilInConfiguration(mockConfigB);
  		
  		List<IWikiTableConfiguration> configurations = classUnderTest.getConfigurations();
  		assertNotNull(configurations);
  		assertEquals(2, configurations.size());
  		
  		// this is the expected order
  		assertEquals("A", configurations.get(0).getName());
  		assertEquals("B", configurations.get(1).getName());
  	}
test_case.class_method_signature: WikiTableConfigurationFactoryTest.testGetConfigurations()
test_case.full_signature: @Test public void testGetConfigurations()
test_case.identifier: testGetConfigurations
test_case.invocations: createMock andStubReturn expect getName andStubReturn expect isReadOnly andStubReturn expect clone createMock andStubReturn expect getName andStubReturn expect isReadOnly andStubReturn expect clone replayAll addBuilInConfiguration addBuilInConfiguration getConfigurations assertNotNull assertEquals size assertEquals getName get assertEquals getName get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetConfigurations()
focal_class.declarator: buildInConfigurations = null
focal_class.modifier: private
focal_class.original_string: private  List<IWikiTableConfiguration> buildInConfigurations = null;
focal_class.type: List<IWikiTableConfiguration>
focal_class.var_name: buildInConfigurations
focal_class.declarator: userSpecificConfigurations = null
focal_class.modifier: private
focal_class.original_string: private  List<IWikiTableConfiguration> userSpecificConfigurations = null;
focal_class.type: List<IWikiTableConfiguration>
focal_class.var_name: userSpecificConfigurations
focal_class.declarator: instance = null
focal_class.modifier: private static
focal_class.original_string: private static IWikiTableConfigurationFactory instance = null;
focal_class.type: IWikiTableConfigurationFactory
focal_class.var_name: instance
focal_class.file: sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/wikiTable/WikiTableConfigurationFactory.java
focal_class.identifier: WikiTableConfigurationFactory
focal_class.interfaces: implements IWikiTableConfigurationFactory
focal_class.class_method_signature: WikiTableConfigurationFactory.WikiTableConfigurationFactory()
focal_class.full_signature:   WikiTableConfigurationFactory()
focal_class.identifier: WikiTableConfigurationFactory
focal_class.parameters: ()
focal_class.signature:  WikiTableConfigurationFactory()
focal_class.class_method_signature: WikiTableConfigurationFactory.loadConfigurations()
focal_class.full_signature: private void loadConfigurations()
focal_class.identifier: loadConfigurations
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadConfigurations()
focal_class.class_method_signature: WikiTableConfigurationFactory.getConfigurations()
focal_class.full_signature: @Override public synchronized List<IWikiTableConfiguration> getConfigurations()
focal_class.identifier: getConfigurations
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: List<IWikiTableConfiguration>
focal_class.signature: List<IWikiTableConfiguration> getConfigurations()
focal_class.class_method_signature: WikiTableConfigurationFactory.sortByName(List<IWikiTableConfiguration> list)
focal_class.full_signature: private void sortByName(List<IWikiTableConfiguration> list)
focal_class.identifier: sortByName
focal_class.modifiers: private
focal_class.parameters: (List<IWikiTableConfiguration> list)
focal_class.return: void
focal_class.signature: void sortByName(List<IWikiTableConfiguration> list)
focal_class.class_method_signature: WikiTableConfigurationFactory.getUserSpecificConfigurations()
focal_class.full_signature: @Override public synchronized List<IWikiTableConfiguration> getUserSpecificConfigurations()
focal_class.identifier: getUserSpecificConfigurations
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: List<IWikiTableConfiguration>
focal_class.signature: List<IWikiTableConfiguration> getUserSpecificConfigurations()
focal_class.class_method_signature: WikiTableConfigurationFactory.getBuildInConfigurations()
focal_class.full_signature: @Override public synchronized List<IWikiTableConfiguration> getBuildInConfigurations()
focal_class.identifier: getBuildInConfigurations
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: List<IWikiTableConfiguration>
focal_class.signature: List<IWikiTableConfiguration> getBuildInConfigurations()
focal_class.class_method_signature: WikiTableConfigurationFactory.getInstance()
focal_class.full_signature: public static synchronized IWikiTableConfigurationFactory getInstance()
focal_class.identifier: getInstance
focal_class.modifiers: public static synchronized
focal_class.parameters: ()
focal_class.return: IWikiTableConfigurationFactory
focal_class.signature: IWikiTableConfigurationFactory getInstance()
focal_class.class_method_signature: WikiTableConfigurationFactory.addBuilInConfiguration(IWikiTableConfiguration additionalBuildInConfig)
focal_class.full_signature: @Override public synchronized void addBuilInConfiguration(IWikiTableConfiguration additionalBuildInConfig)
focal_class.identifier: addBuilInConfiguration
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (IWikiTableConfiguration additionalBuildInConfig)
focal_class.return: void
focal_class.signature: void addBuilInConfiguration(IWikiTableConfiguration additionalBuildInConfig)
focal_class.class_method_signature: WikiTableConfigurationFactory.replaceBuilInConfiguration(List<IWikiTableConfiguration> configurations)
focal_class.full_signature: @Override public synchronized void replaceBuilInConfiguration(List<IWikiTableConfiguration> configurations)
focal_class.identifier: replaceBuilInConfiguration
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (List<IWikiTableConfiguration> configurations)
focal_class.return: void
focal_class.signature: void replaceBuilInConfiguration(List<IWikiTableConfiguration> configurations)
focal_class.class_method_signature: WikiTableConfigurationFactory.isNameUnique(IWikiTableConfiguration aConfig)
focal_class.full_signature: private boolean isNameUnique(IWikiTableConfiguration aConfig)
focal_class.identifier: isNameUnique
focal_class.modifiers: private
focal_class.parameters: (IWikiTableConfiguration aConfig)
focal_class.return: boolean
focal_class.signature: boolean isNameUnique(IWikiTableConfiguration aConfig)
focal_class.class_method_signature: WikiTableConfigurationFactory.isNameUnique(List<IWikiTableConfiguration> avaiableConfigs, IWikiTableConfiguration aConfig)
focal_class.full_signature: private boolean isNameUnique(List<IWikiTableConfiguration> avaiableConfigs, IWikiTableConfiguration aConfig)
focal_class.identifier: isNameUnique
focal_class.modifiers: private
focal_class.parameters: (List<IWikiTableConfiguration> avaiableConfigs, IWikiTableConfiguration aConfig)
focal_class.return: boolean
focal_class.signature: boolean isNameUnique(List<IWikiTableConfiguration> avaiableConfigs, IWikiTableConfiguration aConfig)
focal_class.class_method_signature: WikiTableConfigurationFactory.replaceUserSpecificConfigurations(List<IWikiTableConfiguration> config)
focal_class.full_signature: @Override public synchronized void replaceUserSpecificConfigurations(List<IWikiTableConfiguration> config)
focal_class.identifier: replaceUserSpecificConfigurations
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (List<IWikiTableConfiguration> config)
focal_class.return: void
focal_class.signature: void replaceUserSpecificConfigurations(List<IWikiTableConfiguration> config)
focal_class.class_method_signature: WikiTableConfigurationFactory.addUserSpecificConfigurations(IWikiTableConfiguration config)
focal_class.full_signature: @Override public void addUserSpecificConfigurations(IWikiTableConfiguration config)
focal_class.identifier: addUserSpecificConfigurations
focal_class.modifiers: @Override public
focal_class.parameters: (IWikiTableConfiguration config)
focal_class.return: void
focal_class.signature: void addUserSpecificConfigurations(IWikiTableConfiguration config)
focal_class.class_method_signature: WikiTableConfigurationFactory.setBuildInConfigurations(List<IWikiTableConfiguration> buildInConfigurations)
focal_class.full_signature: public synchronized void setBuildInConfigurations(List<IWikiTableConfiguration> buildInConfigurations)
focal_class.identifier: setBuildInConfigurations
focal_class.modifiers: public synchronized
focal_class.parameters: (List<IWikiTableConfiguration> buildInConfigurations)
focal_class.return: void
focal_class.signature: void setBuildInConfigurations(List<IWikiTableConfiguration> buildInConfigurations)
focal_class.class_method_signature: WikiTableConfigurationFactory.setUserSpecificConfigurations(List<IWikiTableConfiguration> userSpecificConfigurations)
focal_class.full_signature: public synchronized void setUserSpecificConfigurations(List<IWikiTableConfiguration> userSpecificConfigurations)
focal_class.identifier: setUserSpecificConfigurations
focal_class.modifiers: public synchronized
focal_class.parameters: (List<IWikiTableConfiguration> userSpecificConfigurations)
focal_class.return: void
focal_class.signature: void setUserSpecificConfigurations(List<IWikiTableConfiguration> userSpecificConfigurations)
focal_class.class_method_signature: WikiTableConfigurationFactory.merge(List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary)
focal_class.full_signature: public static List<IWikiTableConfiguration> merge(List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary)
focal_class.identifier: merge
focal_class.modifiers: public static
focal_class.parameters: (List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary)
focal_class.return: List<IWikiTableConfiguration>
focal_class.signature: List<IWikiTableConfiguration> merge(List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary)
focal_method.body: @Override
  	public synchronized   List<IWikiTableConfiguration> getConfigurations(){
  		List<IWikiTableConfiguration> result = new ArrayList<IWikiTableConfiguration>();
  		
  		result.addAll(getBuildInConfigurations());
  		result.addAll(getUserSpecificConfigurations());
  		
  		sortByName(result);
  		return result;
  	}
focal_method.class_method_signature: WikiTableConfigurationFactory.getConfigurations()
focal_method.full_signature: @Override public synchronized List<IWikiTableConfiguration> getConfigurations()
focal_method.identifier: getConfigurations
focal_method.invocations: addAll getBuildInConfigurations addAll getUserSpecificConfigurations sortByName
focal_method.modifiers: @Override public synchronized
focal_method.parameters: ()
focal_method.return: List<IWikiTableConfiguration>
focal_method.signature: List<IWikiTableConfiguration> getConfigurations()