From 79b79457f4a9b8005c4be12a09615768d26778ec Mon Sep 17 00:00:00 2001 From: Alejandra Ferreiro Vidal Date: Wed, 22 May 2019 16:05:34 +0200 Subject: [PATCH] remove !#groovy header --- template/StepTestTemplateTest.groovy | 1 - test/groovy/ArtifactSetVersionTest.groovy | 2 -- test/groovy/CloudFoundryDeployTest.groovy | 1 - test/groovy/DetectExecuteScanTest.groovy | 1 - test/groovy/DurationMeasureTest.groovy | 2 -- test/groovy/GaugeExecuteTestsTest.groovy | 1 - test/groovy/GithubPublishReleaseTest.groovy | 1 - test/groovy/HandlePipelineStepErrorsTest.groovy | 1 - test/groovy/HealthExecuteCheckTest.groovy | 1 - test/groovy/InfluxWriteDataTest.groovy | 1 - test/groovy/KanikoExecuteTest.groovy | 1 - test/groovy/KarmaExecuteTestsTest.groovy | 1 - test/groovy/MailSendNotificationTest.groovy | 1 - test/groovy/PipelineRestartStepsTest.groovy | 1 - test/groovy/PiperPipelineStageInitTest.groovy | 1 - test/groovy/PiperPipelineStagePostTest.groovy | 1 - test/groovy/PiperStageWrapperTest.groovy | 1 - test/groovy/SlackSendNotificationTest.groovy | 1 - test/groovy/UiVeri5ExecuteTestsTest.groovy | 2 -- test/groovy/WhitesourceExecuteScanTest.groovy | 1 - test/groovy/templates/PiperInitRunStageConfigurationTest.groovy | 1 - test/groovy/templates/PiperPipelineStageAcceptanceTest.groovy | 1 - .../templates/PiperPipelineStageAdditionalUnitTestsTest.groovy | 1 - test/groovy/templates/PiperPipelineStageBuildTest.groovy | 1 - test/groovy/templates/PiperPipelineStageComplianceTest.groovy | 1 - test/groovy/templates/PiperPipelineStageConfirmTest.groovy | 1 - test/groovy/templates/PiperPipelineStageInitTest.groovy | 1 - test/groovy/templates/PiperPipelineStageIntegrationTest.groovy | 1 - test/groovy/templates/PiperPipelineStagePRVotingTest.groovy | 1 - test/groovy/templates/PiperPipelineStagePerformanceTest.groovy | 1 - test/groovy/templates/PiperPipelineStagePromoteTest.groovy | 1 - test/groovy/templates/PiperPipelineStageReleaseTest.groovy | 1 - test/groovy/templates/PiperPipelineStageSecurityTest.groovy | 1 - test/groovy/templates/PiperPipelineTest.groovy | 1 - test/groovy/util/BasePiperTest.groovy | 2 -- test/groovy/util/BasePiperTestContext.groovy | 2 -- test/groovy/util/ProjectSource.groovy | 1 - 37 files changed, 42 deletions(-) diff --git a/template/StepTestTemplateTest.groovy b/template/StepTestTemplateTest.groovy index 8f2cb936f..fb004217d 100644 --- a/template/StepTestTemplateTest.groovy +++ b/template/StepTestTemplateTest.groovy @@ -1,4 +1,3 @@ -#!groovy import com.lesfurets.jenkins.unit.BasePipelineTest import static org.junit.Assert.assertEquals diff --git a/test/groovy/ArtifactSetVersionTest.groovy b/test/groovy/ArtifactSetVersionTest.groovy index 9e0fa8c42..13ab9b18d 100644 --- a/test/groovy/ArtifactSetVersionTest.groovy +++ b/test/groovy/ArtifactSetVersionTest.groovy @@ -1,5 +1,3 @@ -#!groovy - import org.junit.Before import org.junit.Rule import org.junit.Test diff --git a/test/groovy/CloudFoundryDeployTest.groovy b/test/groovy/CloudFoundryDeployTest.groovy index deb56fcce..d83d949df 100644 --- a/test/groovy/CloudFoundryDeployTest.groovy +++ b/test/groovy/CloudFoundryDeployTest.groovy @@ -1,4 +1,3 @@ -#!groovy import com.sap.piper.JenkinsUtils import org.junit.Before import org.junit.Rule diff --git a/test/groovy/DetectExecuteScanTest.groovy b/test/groovy/DetectExecuteScanTest.groovy index 800e68d35..489913b06 100644 --- a/test/groovy/DetectExecuteScanTest.groovy +++ b/test/groovy/DetectExecuteScanTest.groovy @@ -1,4 +1,3 @@ -#!groovy import org.junit.Before import org.junit.Rule import org.junit.Test diff --git a/test/groovy/DurationMeasureTest.groovy b/test/groovy/DurationMeasureTest.groovy index 1f7bc856c..029571048 100644 --- a/test/groovy/DurationMeasureTest.groovy +++ b/test/groovy/DurationMeasureTest.groovy @@ -1,5 +1,3 @@ -#!groovy - import com.sap.piper.analytics.InfluxData import org.junit.Rule diff --git a/test/groovy/GaugeExecuteTestsTest.groovy b/test/groovy/GaugeExecuteTestsTest.groovy index f369f37e5..2c61e0855 100644 --- a/test/groovy/GaugeExecuteTestsTest.groovy +++ b/test/groovy/GaugeExecuteTestsTest.groovy @@ -1,4 +1,3 @@ -#!groovy import org.junit.Before import org.junit.Rule import org.junit.Test diff --git a/test/groovy/GithubPublishReleaseTest.groovy b/test/groovy/GithubPublishReleaseTest.groovy index a6162676d..b37a96eb2 100644 --- a/test/groovy/GithubPublishReleaseTest.groovy +++ b/test/groovy/GithubPublishReleaseTest.groovy @@ -1,4 +1,3 @@ -#!groovy import groovy.json.JsonSlurperClassic import org.junit.Before import org.junit.Rule diff --git a/test/groovy/HandlePipelineStepErrorsTest.groovy b/test/groovy/HandlePipelineStepErrorsTest.groovy index dd29e5f94..f9b4ae678 100644 --- a/test/groovy/HandlePipelineStepErrorsTest.groovy +++ b/test/groovy/HandlePipelineStepErrorsTest.groovy @@ -1,4 +1,3 @@ -#!groovy import hudson.AbortException import static org.hamcrest.Matchers.is diff --git a/test/groovy/HealthExecuteCheckTest.groovy b/test/groovy/HealthExecuteCheckTest.groovy index 7ffb3793e..586f81506 100644 --- a/test/groovy/HealthExecuteCheckTest.groovy +++ b/test/groovy/HealthExecuteCheckTest.groovy @@ -1,4 +1,3 @@ -#!groovy import org.junit.Before import org.junit.Rule import org.junit.Test diff --git a/test/groovy/InfluxWriteDataTest.groovy b/test/groovy/InfluxWriteDataTest.groovy index 4456f99b1..7a82b4b52 100644 --- a/test/groovy/InfluxWriteDataTest.groovy +++ b/test/groovy/InfluxWriteDataTest.groovy @@ -1,4 +1,3 @@ -#!groovy import com.sap.piper.DefaultValueCache import com.sap.piper.analytics.InfluxData diff --git a/test/groovy/KanikoExecuteTest.groovy b/test/groovy/KanikoExecuteTest.groovy index 5853ca846..c620cb082 100644 --- a/test/groovy/KanikoExecuteTest.groovy +++ b/test/groovy/KanikoExecuteTest.groovy @@ -1,4 +1,3 @@ -#!groovy import org.junit.Before import org.junit.Rule import org.junit.Test diff --git a/test/groovy/KarmaExecuteTestsTest.groovy b/test/groovy/KarmaExecuteTestsTest.groovy index fcce88c4a..3b1e1fe74 100644 --- a/test/groovy/KarmaExecuteTestsTest.groovy +++ b/test/groovy/KarmaExecuteTestsTest.groovy @@ -1,4 +1,3 @@ -#!groovy import org.junit.Before import org.junit.Rule import org.junit.Test diff --git a/test/groovy/MailSendNotificationTest.groovy b/test/groovy/MailSendNotificationTest.groovy index 1647bff8b..1964f3570 100644 --- a/test/groovy/MailSendNotificationTest.groovy +++ b/test/groovy/MailSendNotificationTest.groovy @@ -1,4 +1,3 @@ -#!groovy import org.junit.Before import org.junit.Rule import org.junit.Test diff --git a/test/groovy/PipelineRestartStepsTest.groovy b/test/groovy/PipelineRestartStepsTest.groovy index 6d4c471fc..4fff88605 100644 --- a/test/groovy/PipelineRestartStepsTest.groovy +++ b/test/groovy/PipelineRestartStepsTest.groovy @@ -1,4 +1,3 @@ -#!groovy import org.jenkinsci.plugins.workflow.steps.FlowInterruptedException import org.junit.Rule import org.junit.Test diff --git a/test/groovy/PiperPipelineStageInitTest.groovy b/test/groovy/PiperPipelineStageInitTest.groovy index b5e18b39f..be8e27781 100644 --- a/test/groovy/PiperPipelineStageInitTest.groovy +++ b/test/groovy/PiperPipelineStageInitTest.groovy @@ -1,4 +1,3 @@ -#!groovy package stages import org.junit.Before diff --git a/test/groovy/PiperPipelineStagePostTest.groovy b/test/groovy/PiperPipelineStagePostTest.groovy index b0266c7da..a3ddd2c1b 100644 --- a/test/groovy/PiperPipelineStagePostTest.groovy +++ b/test/groovy/PiperPipelineStagePostTest.groovy @@ -1,4 +1,3 @@ -#!groovy package stages import org.junit.Before diff --git a/test/groovy/PiperStageWrapperTest.groovy b/test/groovy/PiperStageWrapperTest.groovy index 9bd507cab..df7146148 100644 --- a/test/groovy/PiperStageWrapperTest.groovy +++ b/test/groovy/PiperStageWrapperTest.groovy @@ -1,4 +1,3 @@ -#!groovy import org.junit.Before import org.junit.Rule import org.junit.Test diff --git a/test/groovy/SlackSendNotificationTest.groovy b/test/groovy/SlackSendNotificationTest.groovy index c59f82b41..33a78173c 100644 --- a/test/groovy/SlackSendNotificationTest.groovy +++ b/test/groovy/SlackSendNotificationTest.groovy @@ -1,4 +1,3 @@ -#!groovy import org.junit.Before import org.junit.Rule import org.junit.Test diff --git a/test/groovy/UiVeri5ExecuteTestsTest.groovy b/test/groovy/UiVeri5ExecuteTestsTest.groovy index 2155ad6fb..97620ddfa 100644 --- a/test/groovy/UiVeri5ExecuteTestsTest.groovy +++ b/test/groovy/UiVeri5ExecuteTestsTest.groovy @@ -1,5 +1,3 @@ -#!groovy - import static org.hamcrest.Matchers.* import org.junit.Before diff --git a/test/groovy/WhitesourceExecuteScanTest.groovy b/test/groovy/WhitesourceExecuteScanTest.groovy index 8e9fa78a0..da933d4d2 100644 --- a/test/groovy/WhitesourceExecuteScanTest.groovy +++ b/test/groovy/WhitesourceExecuteScanTest.groovy @@ -1,4 +1,3 @@ -#!groovy import com.sap.piper.DescriptorUtils import com.sap.piper.JsonUtils import com.sap.piper.integration.WhitesourceOrgAdminRepository diff --git a/test/groovy/templates/PiperInitRunStageConfigurationTest.groovy b/test/groovy/templates/PiperInitRunStageConfigurationTest.groovy index b12ff1aae..9cda73fd3 100644 --- a/test/groovy/templates/PiperInitRunStageConfigurationTest.groovy +++ b/test/groovy/templates/PiperInitRunStageConfigurationTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStageAcceptanceTest.groovy b/test/groovy/templates/PiperPipelineStageAcceptanceTest.groovy index d27ed7d27..85e0fcf66 100644 --- a/test/groovy/templates/PiperPipelineStageAcceptanceTest.groovy +++ b/test/groovy/templates/PiperPipelineStageAcceptanceTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStageAdditionalUnitTestsTest.groovy b/test/groovy/templates/PiperPipelineStageAdditionalUnitTestsTest.groovy index 9b76e3a5d..311f2888f 100644 --- a/test/groovy/templates/PiperPipelineStageAdditionalUnitTestsTest.groovy +++ b/test/groovy/templates/PiperPipelineStageAdditionalUnitTestsTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStageBuildTest.groovy b/test/groovy/templates/PiperPipelineStageBuildTest.groovy index 8bfcf1c6a..656a2db13 100644 --- a/test/groovy/templates/PiperPipelineStageBuildTest.groovy +++ b/test/groovy/templates/PiperPipelineStageBuildTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStageComplianceTest.groovy b/test/groovy/templates/PiperPipelineStageComplianceTest.groovy index 5fed00021..0fe45e14d 100644 --- a/test/groovy/templates/PiperPipelineStageComplianceTest.groovy +++ b/test/groovy/templates/PiperPipelineStageComplianceTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStageConfirmTest.groovy b/test/groovy/templates/PiperPipelineStageConfirmTest.groovy index 696f6e741..d6b07fd56 100644 --- a/test/groovy/templates/PiperPipelineStageConfirmTest.groovy +++ b/test/groovy/templates/PiperPipelineStageConfirmTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStageInitTest.groovy b/test/groovy/templates/PiperPipelineStageInitTest.groovy index 12e7e63c3..861670121 100644 --- a/test/groovy/templates/PiperPipelineStageInitTest.groovy +++ b/test/groovy/templates/PiperPipelineStageInitTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStageIntegrationTest.groovy b/test/groovy/templates/PiperPipelineStageIntegrationTest.groovy index 7b9591447..9dfadff60 100644 --- a/test/groovy/templates/PiperPipelineStageIntegrationTest.groovy +++ b/test/groovy/templates/PiperPipelineStageIntegrationTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStagePRVotingTest.groovy b/test/groovy/templates/PiperPipelineStagePRVotingTest.groovy index 82e7c5b75..d71c68101 100644 --- a/test/groovy/templates/PiperPipelineStagePRVotingTest.groovy +++ b/test/groovy/templates/PiperPipelineStagePRVotingTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStagePerformanceTest.groovy b/test/groovy/templates/PiperPipelineStagePerformanceTest.groovy index 64b73c860..00d2dde32 100644 --- a/test/groovy/templates/PiperPipelineStagePerformanceTest.groovy +++ b/test/groovy/templates/PiperPipelineStagePerformanceTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStagePromoteTest.groovy b/test/groovy/templates/PiperPipelineStagePromoteTest.groovy index 9a84cf712..0f1244952 100644 --- a/test/groovy/templates/PiperPipelineStagePromoteTest.groovy +++ b/test/groovy/templates/PiperPipelineStagePromoteTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStageReleaseTest.groovy b/test/groovy/templates/PiperPipelineStageReleaseTest.groovy index bf1f02d3e..2be2480ca 100644 --- a/test/groovy/templates/PiperPipelineStageReleaseTest.groovy +++ b/test/groovy/templates/PiperPipelineStageReleaseTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineStageSecurityTest.groovy b/test/groovy/templates/PiperPipelineStageSecurityTest.groovy index b172b2ff6..ddca692a9 100644 --- a/test/groovy/templates/PiperPipelineStageSecurityTest.groovy +++ b/test/groovy/templates/PiperPipelineStageSecurityTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/templates/PiperPipelineTest.groovy b/test/groovy/templates/PiperPipelineTest.groovy index 1d9295875..737cf57eb 100644 --- a/test/groovy/templates/PiperPipelineTest.groovy +++ b/test/groovy/templates/PiperPipelineTest.groovy @@ -1,4 +1,3 @@ -#!groovy package templates import org.junit.Before diff --git a/test/groovy/util/BasePiperTest.groovy b/test/groovy/util/BasePiperTest.groovy index 1e5604947..30f2546a6 100644 --- a/test/groovy/util/BasePiperTest.groovy +++ b/test/groovy/util/BasePiperTest.groovy @@ -1,5 +1,3 @@ -#!groovy - package util import com.lesfurets.jenkins.unit.BasePipelineTest diff --git a/test/groovy/util/BasePiperTestContext.groovy b/test/groovy/util/BasePiperTestContext.groovy index 290bc502a..24109f371 100644 --- a/test/groovy/util/BasePiperTestContext.groovy +++ b/test/groovy/util/BasePiperTestContext.groovy @@ -1,5 +1,3 @@ -#!groovy - package util import com.sap.piper.DescriptorUtils diff --git a/test/groovy/util/ProjectSource.groovy b/test/groovy/util/ProjectSource.groovy index 2861f2fa0..a446a9a91 100644 --- a/test/groovy/util/ProjectSource.groovy +++ b/test/groovy/util/ProjectSource.groovy @@ -1,4 +1,3 @@ -#!groovy package util import com.lesfurets.jenkins.unit.global.lib.SourceRetriever