Skip to content

Commit

Permalink
🔥 : remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubuisson committed Feb 2, 2020
1 parent ebc1677 commit b6b0370
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import org.springframework.http.HttpMethod
import org.springframework.http.HttpStatus
import org.springframework.web.client.RestTemplate
import java.util.*
import java.util.regex.Pattern

abstract class RegistryRawContent(private val registryType: RegistryType, private val restTemplate: RestTemplate) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package io.codeka.gaia.registries.github

import io.codeka.gaia.registries.RegistryType
import io.codeka.gaia.registries.RegistryRawContent
import io.codeka.gaia.registries.RegistryType
import org.springframework.stereotype.Component
import org.springframework.web.client.RestTemplate
import java.util.regex.Pattern

@Component
class GitHubRawContent(restTemplate: RestTemplate) : RegistryRawContent(RegistryType.GITHUB, restTemplate)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.codeka.gaia.registries.github

import com.fasterxml.jackson.annotation.*
import com.fasterxml.jackson.annotation.JsonAlias
import io.codeka.gaia.registries.AbstractRegistryApi
import io.codeka.gaia.registries.RegistryType
import io.codeka.gaia.registries.SourceRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package io.codeka.gaia.registries.gitlab

import io.codeka.gaia.registries.RegistryType
import io.codeka.gaia.registries.RegistryRawContent
import io.codeka.gaia.registries.RegistryType
import org.springframework.stereotype.Component
import org.springframework.web.client.RestTemplate
import java.util.regex.Pattern

@Component
class GitLabRawContent(restTemplate: RestTemplate) : RegistryRawContent(RegistryType.GITLAB, restTemplate)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.codeka.gaia.registries.gitlab

import com.fasterxml.jackson.annotation.*
import com.fasterxml.jackson.annotation.JsonAlias
import io.codeka.gaia.registries.AbstractRegistryApi
import io.codeka.gaia.registries.RegistryType
import io.codeka.gaia.registries.SourceRepository
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/modules.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout/header :: header(~{::title})">

<title>Gaia - Modules</title>
Expand Down
3 changes: 0 additions & 3 deletions src/test/java/io/codeka/gaia/e2e/ModulesPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ package io.codeka.gaia.e2e
import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.WebElement
import org.openqa.selenium.support.FindAll
import org.openqa.selenium.support.FindBy
import org.openqa.selenium.support.FindBys

class ModulesPage (webDriver: WebDriver){

Expand Down
2 changes: 0 additions & 2 deletions src/test/java/io/codeka/gaia/e2e/SeleniumIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.support.PageFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.codeka.gaia.registries.github;

import io.codeka.gaia.modules.bo.TerraformModule;
import io.codeka.gaia.registries.RegistryDetails;
import io.codeka.gaia.registries.RegistryFile;
import io.codeka.gaia.registries.RegistryType;
import io.codeka.gaia.modules.bo.TerraformModule;
import io.codeka.gaia.teams.OAuth2User;
import io.codeka.gaia.teams.User;
import org.bson.internal.Base64;
Expand All @@ -22,7 +22,8 @@
import java.util.List;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.when;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import io.codeka.gaia.teams.OAuth2User
import io.codeka.gaia.teams.User
import org.assertj.core.api.Assertions.assertThat
import org.bson.internal.Base64
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.client.AutoConfigureWebClient
Expand All @@ -18,7 +17,6 @@ import org.springframework.test.web.client.match.MockRestRequestMatchers.request
import org.springframework.test.web.client.response.MockRestResponseCreators.withSuccess
import java.nio.charset.Charset


@RestClientTest(GithubRegistryApi::class)
@AutoConfigureWebClient(registerRestTemplate = true)
class GithubRegistryApiTest{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.codeka.gaia.registries.gitlab;

import io.codeka.gaia.modules.bo.TerraformModule;
import io.codeka.gaia.registries.RegistryDetails;
import io.codeka.gaia.registries.RegistryFile;
import io.codeka.gaia.registries.RegistryType;
import io.codeka.gaia.modules.bo.TerraformModule;
import io.codeka.gaia.teams.OAuth2User;
import io.codeka.gaia.teams.User;
import org.bson.internal.Base64;
Expand All @@ -22,7 +22,8 @@
import java.util.List;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.when;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.web.servlet.MockMvc;
Expand All @@ -15,7 +14,6 @@
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.hasSize;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
Expand Down

0 comments on commit b6b0370

Please sign in to comment.