@@ -0,0 +1,1004 @@
+package com.tisawesomeness.minecord.util.network;%0A%0Aimport org.junit.jupiter.api.DisplayName;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.params.ParameterizedTest;%0Aimport org.junit.jupiter.params.provider.EmptySource;%0Aimport org.junit.jupiter.params.provider.ValueSource;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Apublic class URLUtilsTest %7B%0A%0A    @Test%0A    @DisplayName(%22Http addresses can be converted to https%22)%0A    public void testHttps() %7B%0A        assertThat(URLUtils.httpToHttps(%22http://example.com/%22)).isEqualTo(%22https://example.com/%22);%0A    %7D%0A%0A    @ParameterizedTest(name = %22%7Bindex%7D ==%3E String URL %7B0%7D is unmodified%22)%0A    @ValueSource(strings = %7B%0A            %22sample text%22,%0A            %22https://example.com/%22,%0A            %22ftp://example.com/%22%0A    %7D)%0A    @EmptySource%0A    @DisplayName(%22httpToHttps() leaves non-http urls unmodified%22)%0A    public void testNotHttps(String candidate) %7B%0A        assertThat(URLUtils.httpToHttps(candidate)).isEqualTo(candidate);%0A    %7D%0A%0A%7D%0A

Test URLUtils.httpToHttps()