public static String getInternalBuildIdOrNull(SBuildType buildType){ try { return buildType.getInternalId(); } catch (NoSuchMethodError ex) { return null; } }
public static String getInternalBuildIdOrNull(SBuildType buildType){ try { return buildType.getInternalId(); } catch (NoSuchMethodError ex) { LOGGER.log(Level.INFO,ex.getMessage(),ex); return null; } }
public static String getInternalBuildId(SBuildType buildType){ try { return buildType.getInternalId(); } catch (NoSuchMethodError ex) { return buildType.getBuildTypeId(); } }
public static String getInternalBuildId(SBuildType buildType){ try { return buildType.getInternalId(); } catch (NoSuchMethodError ex) { LOGGER.log(Level.INFO,ex.getMessage(),ex); return buildType.getBuildTypeId(); } }
public TemplateNotFoundException(BuildStateEnum buildState, SBuildType buildType, String templateId, String nonBranchOrBranch) { super("Template '" + templateId + "' was not found for build state '" + buildState.getShortName() + "'", TEMPLATE_NOT_FOUND_ERROR_CODE); this.buildState = buildState; this.projectId = buildType.getProjectId(); this.buildTypeId = buildType.getInternalId(); this.templateFormat = ""; this.templateId = templateId; this.nonBranchOrBranch = nonBranchOrBranch; }
when(build2.getInternalId()).thenReturn("bt2"); when(build2.getName()).thenReturn("This is Build 2"); when(build3.getBuildTypeId()).thenReturn("bt3"); when(build3.getInternalId()).thenReturn("bt3"); when(build3.getName()).thenReturn("This is Build 3"); ((MockSProject) sProject).addANewBuildTypeToTheMock(build2);
when(build2.getInternalId()).thenReturn("bt2"); when(build2.getName()).thenReturn("This is Build 2"); when(build3.getBuildTypeId()).thenReturn("bt3"); when(build3.getInternalId()).thenReturn("bt3"); when(build3.getName()).thenReturn("This is Build 3"); ((MockSProject) sProject).addANewBuildTypeToTheMock(build2);