test_class.declarator: classUnderTest = null
test_class.original_string: DiffPresentationFactoryImpl classUnderTest = null;
test_class.type: DiffPresentationFactoryImpl
test_class.var_name: classUnderTest
test_class.declarator: mockSessionInfoProvider
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private SessionInfoProvider mockSessionInfoProvider;
test_class.type: SessionInfoProvider
test_class.var_name: mockSessionInfoProvider
test_class.declarator: mockPreferenceBean
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private DBDiffPreferenceBean mockPreferenceBean;
test_class.type: DBDiffPreferenceBean
test_class.var_name: mockPreferenceBean
test_class.file: sql12/plugins/dbdiff/src/test/java/net/sourceforge/squirrel_sql/plugins/dbdiff/gui/DiffPresentationFactoryImplTest.java
test_class.identifier: DiffPresentationFactoryImplTest
test_case.body: @Test
  	public void testCreateDiffPresentation()
  	{
  		when(mockPreferenceBean.isUseTabularDiffPresenation()).thenReturn(true);
  		when(mockPreferenceBean.isUseExternalGraphicalDiffTool()).thenReturn(false);
  
  		IDiffPresentation result =
  			classUnderTest.createDiffPresentation(mockSessionInfoProvider, mockPreferenceBean);
  
  		assertTrue(result instanceof TabularDiffPresentation);
  
  		when(mockPreferenceBean.isUseTabularDiffPresenation()).thenReturn(false);
  		when(mockPreferenceBean.isUseExternalGraphicalDiffTool()).thenReturn(true);
  
  		result = classUnderTest.createDiffPresentation(mockSessionInfoProvider, mockPreferenceBean);
  
  		assertTrue(result instanceof ExternalToolSideBySideDiffPresentation);
  
  		when(mockPreferenceBean.isUseTabularDiffPresenation()).thenReturn(false);
  		when(mockPreferenceBean.isUseExternalGraphicalDiffTool()).thenReturn(false);
  
  		result = classUnderTest.createDiffPresentation(mockSessionInfoProvider, mockPreferenceBean);
  
  		assertTrue(result instanceof JMeldDiffPresentation);
  
  	}
test_case.class_method_signature: DiffPresentationFactoryImplTest.testCreateDiffPresentation()
test_case.full_signature: @Test public void testCreateDiffPresentation()
test_case.identifier: testCreateDiffPresentation
test_case.invocations: thenReturn when isUseTabularDiffPresenation thenReturn when isUseExternalGraphicalDiffTool createDiffPresentation assertTrue thenReturn when isUseTabularDiffPresenation thenReturn when isUseExternalGraphicalDiffTool createDiffPresentation assertTrue thenReturn when isUseTabularDiffPresenation thenReturn when isUseExternalGraphicalDiffTool createDiffPresentation assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateDiffPresentation()
focal_class.file: sql12/plugins/dbdiff/src/main/java/net/sourceforge/squirrel_sql/plugins/dbdiff/gui/DiffPresentationFactoryImpl.java
focal_class.identifier: DiffPresentationFactoryImpl
focal_class.interfaces: implements IDiffPresentationFactory
focal_class.class_method_signature: DiffPresentationFactoryImpl.createDiffPresentation(SessionInfoProvider sessionInfoProvider,
  		DBDiffPreferenceBean preferenceBean)
focal_class.full_signature: @Override public IDiffPresentation createDiffPresentation(SessionInfoProvider sessionInfoProvider,
  		DBDiffPreferenceBean preferenceBean)
focal_class.identifier: createDiffPresentation
focal_class.modifiers: @Override public
focal_class.parameters: (SessionInfoProvider sessionInfoProvider,
  		DBDiffPreferenceBean preferenceBean)
focal_class.return: IDiffPresentation
focal_class.signature: IDiffPresentation createDiffPresentation(SessionInfoProvider sessionInfoProvider,
  		DBDiffPreferenceBean preferenceBean)
focal_method.body: @Override
  	public IDiffPresentation createDiffPresentation(SessionInfoProvider sessionInfoProvider,
  		DBDiffPreferenceBean preferenceBean)
  	{
  		IDiffPresentation result = null;
  
  		if (preferenceBean.isUseExternalGraphicalDiffTool())
  		{
  			result = new ExternalToolSideBySideDiffPresentation();
  		}
  		else
  		{
  			if (preferenceBean.isUseTabularDiffPresenation())
  			{
  				result = new TabularDiffPresentation();
  			}
  			else
  			{
  				result = new JMeldDiffPresentation();
  			}
  		}
  
  		result.setSessionInfoProvider(sessionInfoProvider);
  		result.setPreferenceBean(preferenceBean);
  		return result;
  	}
focal_method.class_method_signature: DiffPresentationFactoryImpl.createDiffPresentation(SessionInfoProvider sessionInfoProvider,
  		DBDiffPreferenceBean preferenceBean)
focal_method.full_signature: @Override public IDiffPresentation createDiffPresentation(SessionInfoProvider sessionInfoProvider,
  		DBDiffPreferenceBean preferenceBean)
focal_method.identifier: createDiffPresentation
focal_method.invocations: isUseExternalGraphicalDiffTool isUseTabularDiffPresenation setSessionInfoProvider setPreferenceBean
focal_method.modifiers: @Override public
focal_method.parameters: (SessionInfoProvider sessionInfoProvider,
  		DBDiffPreferenceBean preferenceBean)
focal_method.return: IDiffPresentation
focal_method.signature: IDiffPresentation createDiffPresentation(SessionInfoProvider sessionInfoProvider,
  		DBDiffPreferenceBean preferenceBean)