Package hudson.plugins.scm_sync_configuration.model

Examples of hudson.plugins.scm_sync_configuration.model.ScmContext


    if(scmUnderTest.useCredentials()){
      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();
View Full Code Here


    super(scmUnderTest);
  }
 
  @Test
  public void shouldNotInitializeAnyRepositoryWhenScmContextIsEmpty() throws Throwable {
    ScmContext emptyContext = new ScmContext(null, null);
    sscBusiness.init(emptyContext);
    assertThat(sscBusiness.scmCheckoutDirectorySettledUp(emptyContext), is(false));
   
    emptyContext = new ScmContext(null, getSCMRepositoryURL());
    sscBusiness.init(emptyContext);
    assertThat(sscBusiness.scmCheckoutDirectorySettledUp(emptyContext), is(false));
   
    createSCMMock(null);
    assertThat(sscBusiness.scmCheckoutDirectorySettledUp(emptyContext), is(false));
View Full Code Here

    // Strategy not found !
    return null;
  }

  public ScmContext createScmContext(){
    return new ScmContext(this.scm, this.scmRepositoryUrl, this.commitMessagePattern);
  }
View Full Code Here

TOP

Related Classes of hudson.plugins.scm_sync_configuration.model.ScmContext

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.