Package net.raymanoz.config

Examples of net.raymanoz.config.Configuration


  final File mockScriptDir = mock(File.class);
  final ScriptList scriptList = mock(ScriptList.class);
  final StreamUtil mockStreamUtil = mock(StreamUtil.class);

  private Configuration createMockConfiguration() {
    Configuration mockConfiguration = mock(ConfigurationImpl.class);
    when(mockConfiguration.getNumberOfDigits()).thenReturn(1);
    when(mockConfiguration.getLatestScriptDirectory()).thenReturn(mockScriptDir);
    when(mockConfiguration.getTemplateFile()).thenReturn(mockTemplateFile);
    return mockConfiguration;
  }
View Full Code Here


  private static final String EXPECTED_PATCH_HISTORY_TABLE = "test_patch_history";
 
  private final java.sql.Connection connection = mock(java.sql.Connection.class);
 
  private Configuration mockConfiguration(){
    Configuration config = mock(Configuration.class);
    when(config.getConnection()).thenReturn(connection);
    when(config.getSchemaVersionTable()).thenReturn(EXPECTED_TABLE_NAME);
    when(config.getScriptHistoryTable()).thenReturn(EXPECTED_PATCH_HISTORY_TABLE);
    when(config.getDatabaseType()).thenReturn(DatabaseType.UNKNOWN);
    return config;
  }
View Full Code Here

TOP

Related Classes of net.raymanoz.config.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.