Package hudson.plugins.scm_sync_configuration.xstream.migration

Examples of hudson.plugins.scm_sync_configuration.xstream.migration.ScmSyncConfigurationPOJO


      // There will be a data migration ..
      LOGGER.info("Your version of persisted ScmSyncConfigurationPlugin data is not up-to-date (v"+versionNumber+" < v"+getCurrentScmSyncConfigurationVersionNumber()+") : data will be migrated !");
    }
   
    // Calling version's reader to read data representation
    ScmSyncConfigurationPOJO pojo = MIGRATORS[versionNumber].readScmSyncConfigurationPOJO(reader, context);
   
    // Migrating old data into up-to-date data
    // Added "+1" because we take into consideration InitialMigrator
    for(int i=versionNumber+1; i<getCurrentScmSyncConfigurationVersionNumber()+1; i++){
      pojo = MIGRATORS[i].migrate(pojo);
View Full Code Here


      SCMCredentialConfiguration mockedCredential = new SCMCredentialConfiguration("toto");
      PowerMockito.doReturn(mockedCredential).when(mockedSCM).extractScmCredentials((String)Mockito.notNull());
    }
   
    scmContext = new ScmContext(mockedSCM, url);
    ScmSyncConfigurationPOJO config = new DefaultSSCPOJO();
    config.setScm(scmContext.getScm());
    config.setScmRepositoryUrl(scmContext.getScmRepositoryUrl());
    ScmSyncConfigurationPlugin.getInstance().loadData(config);
    ScmSyncConfigurationPlugin.getInstance().init();
   
    return mockedSCM;
  }
View Full Code Here

TOP

Related Classes of hudson.plugins.scm_sync_configuration.xstream.migration.ScmSyncConfigurationPOJO

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.