Skip to content

Implement CustomToolRepositoryTest #756

@hohwille

Description

@hohwille

public class CustomToolRepositoryTest extends Assertions {
// public void testRepositoryId() {
//
// // arrange
//
// String name = "jboss-eap";
// VersionIdentifier version = VersionIdentifier.of("7.4.5.GA");
// String repositoryUrl = "https://host.domain.tld:port/folder/räpö$itöry+name/ochn%C3%B6n%F6";
// // act
// CustomTool tool = new CustomTool(name, version, false, false, repositoryUrl, null, null);
// // assert
// assertThat(tool.getTool()).isEqualTo(name);
// assertThat(tool.getVersion()).isSameAs(version);
// assertThat(tool.getRepositoryUrl()).isEqualTo(repositoryUrl);
// assertThat(tool.getUrl()).isEqualTo("host.domain.tld_port/folder_r_p__it_ry_name_ochn_n_");
// }
}

This does not look right.

  • We need to create a custom-tools.json in src/test/resources
  • We need to create a CustomToolRepository configured by this custom-tools.json
  • Using WireMock and according URL in custom-tools.json we could then test downloads of custom tools for that configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    customide-custom-tools.json and related featuresenhancementNew feature or requesttestrelated to testing and QA

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions