test_class.declarator: teamCityConnection
test_class.original_string: TeamCityConnection teamCityConnection;
test_class.type: TeamCityConnection
test_class.var_name: teamCityConnection
test_class.declarator: teamCity
test_class.modifier: @Mock
test_class.original_string: @Mock
      TeamCity teamCity;
test_class.type: TeamCity
test_class.var_name: teamCity
test_class.file: component/core/src/test/java/fr/norad/visuwall/plugin/teamcity/TeamCityConnectionTest.java
test_class.identifier: TeamCityConnectionTest
test_case.body: @Test
      public void should_get_an_enabled_project() throws Exception {
          TeamCityBuildType project = new TeamCityBuildType();
          project.setPaused(false);
  
          when(teamCity.findBuildType(anyString())).thenReturn(project);
  
          SoftwareProjectId softwareProjectId = new SoftwareProjectId("projectId");
          boolean isDisabled = teamCityConnection.isProjectDisabled(softwareProjectId);
  
          assertFalse(isDisabled);
      }
test_case.class_method_signature: TeamCityConnectionTest.should_get_an_enabled_project()
test_case.full_signature: @Test public void should_get_an_enabled_project()
test_case.identifier: should_get_an_enabled_project
test_case.invocations: setPaused thenReturn when findBuildType anyString isProjectDisabled assertFalse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_get_an_enabled_project()
focal_class.declarator: LOG = LoggerFactory.getLogger(TeamCityConnection.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(TeamCityConnection.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: connected
focal_class.modifier: private
focal_class.original_string: private boolean connected;
focal_class.type: boolean
focal_class.var_name: connected
focal_class.declarator: teamCity
focal_class.modifier: @VisibleForTesting
focal_class.original_string: @VisibleForTesting
      TeamCity teamCity;
focal_class.type: TeamCity
focal_class.var_name: teamCity
focal_class.file: component/core/src/main/java/fr/norad/visuwall/plugin/teamcity/TeamCityConnection.java
focal_class.identifier: TeamCityConnection
focal_class.interfaces: implements BuildCapability, TestCapability, ViewCapability
focal_class.class_method_signature: TeamCityConnection.connect(String url, String login, String password)
focal_class.full_signature: @Override public void connect(String url, String login, String password)
focal_class.identifier: connect
focal_class.modifiers: @Override public
focal_class.parameters: (String url, String login, String password)
focal_class.return: void
focal_class.signature: void connect(String url, String login, String password)
focal_class.class_method_signature: TeamCityConnection.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: TeamCityConnection.getDescription(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public String getDescription(SoftwareProjectId softwareProjectId)
focal_class.identifier: getDescription
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: String
focal_class.signature: String getDescription(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: TeamCityConnection.identify(ProjectKey projectKey)
focal_class.full_signature: @Override public SoftwareProjectId identify(ProjectKey projectKey)
focal_class.identifier: identify
focal_class.modifiers: @Override public
focal_class.parameters: (ProjectKey projectKey)
focal_class.return: SoftwareProjectId
focal_class.signature: SoftwareProjectId identify(ProjectKey projectKey)
focal_class.class_method_signature: TeamCityConnection.getBuildIds(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public List<String> getBuildIds(SoftwareProjectId softwareProjectId)
focal_class.identifier: getBuildIds
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: List<String>
focal_class.signature: List<String> getBuildIds(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: TeamCityConnection.listSoftwareProjectIds()
focal_class.full_signature: @Override public Map<SoftwareProjectId, String> listSoftwareProjectIds()
focal_class.identifier: listSoftwareProjectIds
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<SoftwareProjectId, String>
focal_class.signature: Map<SoftwareProjectId, String> listSoftwareProjectIds()
focal_class.class_method_signature: TeamCityConnection.getBuildState(SoftwareProjectId softwareProjectId, String buildId)
focal_class.full_signature: @Override public BuildState getBuildState(SoftwareProjectId softwareProjectId, String buildId)
focal_class.identifier: getBuildState
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId, String buildId)
focal_class.return: BuildState
focal_class.signature: BuildState getBuildState(SoftwareProjectId softwareProjectId, String buildId)
focal_class.class_method_signature: TeamCityConnection.getEstimatedFinishTime(SoftwareProjectId softwareProjectId, String buildId)
focal_class.full_signature: @Override public Date getEstimatedFinishTime(SoftwareProjectId softwareProjectId, String buildId)
focal_class.identifier: getEstimatedFinishTime
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId, String buildId)
focal_class.return: Date
focal_class.signature: Date getEstimatedFinishTime(SoftwareProjectId softwareProjectId, String buildId)
focal_class.class_method_signature: TeamCityConnection.isBuilding(SoftwareProjectId softwareProjectId, String buildId)
focal_class.full_signature: @Override public boolean isBuilding(SoftwareProjectId softwareProjectId, String buildId)
focal_class.identifier: isBuilding
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId, String buildId)
focal_class.return: boolean
focal_class.signature: boolean isBuilding(SoftwareProjectId softwareProjectId, String buildId)
focal_class.class_method_signature: TeamCityConnection.getLastBuildId(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public String getLastBuildId(SoftwareProjectId softwareProjectId)
focal_class.identifier: getLastBuildId
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: String
focal_class.signature: String getLastBuildId(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: TeamCityConnection.getMavenId(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public String getMavenId(SoftwareProjectId softwareProjectId)
focal_class.identifier: getMavenId
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: String
focal_class.signature: String getMavenId(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: TeamCityConnection.getName(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public String getName(SoftwareProjectId softwareProjectId)
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: String
focal_class.signature: String getName(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: TeamCityConnection.isClosed()
focal_class.full_signature: @Override public boolean isClosed()
focal_class.identifier: isClosed
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isClosed()
focal_class.class_method_signature: TeamCityConnection.getBuildTime(SoftwareProjectId softwareProjectId, String buildId)
focal_class.full_signature: @Override public BuildTime getBuildTime(SoftwareProjectId softwareProjectId, String buildId)
focal_class.identifier: getBuildTime
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId, String buildId)
focal_class.return: BuildTime
focal_class.signature: BuildTime getBuildTime(SoftwareProjectId softwareProjectId, String buildId)
focal_class.class_method_signature: TeamCityConnection.isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_class.identifier: isProjectDisabled
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: boolean
focal_class.signature: boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: TeamCityConnection.getBuildCommiters(SoftwareProjectId softwareProjectId, String buildId)
focal_class.full_signature: @Override public List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId, String buildId)
focal_class.identifier: getBuildCommiters
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId, String buildId)
focal_class.return: List<Commiter>
focal_class.signature: List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId, String buildId)
focal_class.class_method_signature: TeamCityConnection.analyzeUnitTests(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public TestResult analyzeUnitTests(SoftwareProjectId softwareProjectId)
focal_class.identifier: analyzeUnitTests
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: TestResult
focal_class.signature: TestResult analyzeUnitTests(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: TeamCityConnection.analyzeIntegrationTests(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public TestResult analyzeIntegrationTests(SoftwareProjectId softwareProjectId)
focal_class.identifier: analyzeIntegrationTests
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: TestResult
focal_class.signature: TestResult analyzeIntegrationTests(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: TeamCityConnection.addBuildIds(Set<String> numbers, TeamCityBuildType buildType)
focal_class.full_signature: private void addBuildIds(Set<String> numbers, TeamCityBuildType buildType)
focal_class.identifier: addBuildIds
focal_class.modifiers: private
focal_class.parameters: (Set<String> numbers, TeamCityBuildType buildType)
focal_class.return: void
focal_class.signature: void addBuildIds(Set<String> numbers, TeamCityBuildType buildType)
focal_class.class_method_signature: TeamCityConnection.checkBuildId(String buildId)
focal_class.full_signature: private void checkBuildId(String buildId)
focal_class.identifier: checkBuildId
focal_class.modifiers: private
focal_class.parameters: (String buildId)
focal_class.return: void
focal_class.signature: void checkBuildId(String buildId)
focal_class.class_method_signature: TeamCityConnection.checkConnected()
focal_class.full_signature: private void checkConnected()
focal_class.identifier: checkConnected
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkConnected()
focal_class.class_method_signature: TeamCityConnection.checkSoftwareProjectId(SoftwareProjectId softwareProjectId)
focal_class.full_signature: private void checkSoftwareProjectId(SoftwareProjectId softwareProjectId)
focal_class.identifier: checkSoftwareProjectId
focal_class.modifiers: private
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: void
focal_class.signature: void checkSoftwareProjectId(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: TeamCityConnection.findSoftwareProjectIdsByViews(List<String> views)
focal_class.full_signature: @Override public List<SoftwareProjectId> findSoftwareProjectIdsByViews(List<String> views)
focal_class.identifier: findSoftwareProjectIdsByViews
focal_class.modifiers: @Override public
focal_class.parameters: (List<String> views)
focal_class.return: List<SoftwareProjectId>
focal_class.signature: List<SoftwareProjectId> findSoftwareProjectIdsByViews(List<String> views)
focal_class.class_method_signature: TeamCityConnection.findViews()
focal_class.full_signature: @Override public List<String> findViews()
focal_class.identifier: findViews
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> findViews()
focal_class.class_method_signature: TeamCityConnection.findProjectNamesByView(String viewName)
focal_class.full_signature: @Override public List<String> findProjectNamesByView(String viewName)
focal_class.identifier: findProjectNamesByView
focal_class.modifiers: @Override public
focal_class.parameters: (String viewName)
focal_class.return: List<String>
focal_class.signature: List<String> findProjectNamesByView(String viewName)
focal_class.class_method_signature: TeamCityConnection.checkViewName(String viewName)
focal_class.full_signature: private void checkViewName(String viewName)
focal_class.identifier: checkViewName
focal_class.modifiers: private
focal_class.parameters: (String viewName)
focal_class.return: void
focal_class.signature: void checkViewName(String viewName)
focal_method.body: @Override
      public boolean isProjectDisabled(SoftwareProjectId softwareProjectId) throws ProjectNotFoundException {
          checkConnected();
          checkSoftwareProjectId(softwareProjectId);
          try {
              String projectId = softwareProjectId.getProjectId();
              TeamCityBuildType buildType = teamCity.findBuildType(projectId);
              return buildType.isPaused();
          } catch (TeamCityBuildTypeNotFoundException e) {
              throw new ProjectNotFoundException("Can't find project with software project id:" + softwareProjectId, e);
          }
      }
focal_method.class_method_signature: TeamCityConnection.isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_method.full_signature: @Override public boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_method.identifier: isProjectDisabled
focal_method.invocations: checkConnected checkSoftwareProjectId getProjectId findBuildType isPaused
focal_method.modifiers: @Override public
focal_method.parameters: (SoftwareProjectId softwareProjectId)
focal_method.return: boolean
focal_method.signature: boolean isProjectDisabled(SoftwareProjectId softwareProjectId)