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 testMerge() throws Exception {
  		IWikiTableConfiguration mockConfigA = mockHelper.createMock(IWikiTableConfiguration.class);
  		expect(mockConfigA.getName()).andStubReturn("A");
  		
  		
  		IWikiTableConfiguration mockConfigBSecondary = mockHelper.createMock(IWikiTableConfiguration.class);
  		expect(mockConfigBSecondary.getName()).andStubReturn("B");
  		
  		IWikiTableConfiguration mockconfigASecondary = mockHelper.createMock(IWikiTableConfiguration.class);
  		expect(mockconfigASecondary.getName()).andStubReturn("A");
  		
  		mockHelper.replayAll();
  		
  		List<IWikiTableConfiguration> primary = new ArrayList<IWikiTableConfiguration>();
  		primary.add(mockConfigA);
  		
  		List<IWikiTableConfiguration> secondary = new ArrayList<IWikiTableConfiguration>();
  		secondary.add(mockconfigASecondary);
  		secondary.add(mockConfigBSecondary);
  		
  		
  		List<IWikiTableConfiguration> merged = WikiTableConfigurationFactory.merge(primary, secondary);
  		
  		assertEquals(1, primary.size());
  		assertEquals(2, secondary.size());
  		assertEquals(2, merged.size());
  	}
test_case.class_method_signature: WikiTableConfigurationFactoryTest.testMerge()
test_case.full_signature: @Test public void testMerge()
test_case.identifier: testMerge
test_case.invocations: createMock andStubReturn expect getName createMock andStubReturn expect getName createMock andStubReturn expect getName replayAll add add add merge assertEquals size assertEquals size assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMerge()
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: public static List<IWikiTableConfiguration> merge(List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary){
  		List<IWikiTableConfiguration> result = new ArrayList<IWikiTableConfiguration>(primary);
  		
  		List<IWikiTableConfiguration> candidates = new ArrayList<IWikiTableConfiguration>(secondary);
  		
  		for (IWikiTableConfiguration aPrimary : primary) {
  			Iterator<IWikiTableConfiguration> it = candidates.iterator();
  			while (it.hasNext()) {
  				IWikiTableConfiguration  aSecondary =  it.next();
  				if(StringUtils.equalsIgnoreCase(aPrimary.getName(), aSecondary.getName())){
  					it.remove();
  				}
  			}
  		}
  		result.addAll(candidates);
  		
  		return result;
  	}
focal_method.class_method_signature: WikiTableConfigurationFactory.merge(List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary)
focal_method.full_signature: public static List<IWikiTableConfiguration> merge(List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary)
focal_method.identifier: merge
focal_method.invocations: iterator hasNext next equalsIgnoreCase getName getName remove addAll
focal_method.modifiers: public static
focal_method.parameters: (List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary)
focal_method.return: List<IWikiTableConfiguration>
focal_method.signature: List<IWikiTableConfiguration> merge(List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary)