1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/template/StepTestTemplateTest.groovy
Christopher Fenner c4993691be
fix Code Climate findings (#361)
* fix Code Climate findings

* fix indentation finding for LICENSE file

* remove CodeClimate finding

* ignore cfg/id_rsa.enc

* ignore *.png

* Update .editorconfig
2018-11-05 10:52:37 +01:00

34 lines
732 B
Groovy

#!groovy
import com.lesfurets.jenkins.unit.BasePipelineTest
import static org.junit.Assert.assertEquals
import static org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
import util.Rules
import util.JenkinsStepRule
class StepTestTemplateTest extends BasePipelineTest {
private JenkinsStepRule jsr = new JenkinsStepRule(this)
@Rule
public RuleChain rules = Rules
.getCommonRules(this)
.around(jsr)
@Before
void init() throws Exception {
}
@Test
void testStepTestTemplate() throws Exception {
jsr.step.call()
// asserts
assertTrue(true)
assertJobStatusSuccess()
}
}