mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
chore(test): cleanup metaClass (#1104)
This commit is contained in:
parent
060d088e1d
commit
ce47a80d19
@ -7,6 +7,7 @@ import static org.hamcrest.Matchers.hasItem
|
||||
import static org.hamcrest.Matchers.hasEntry
|
||||
import static org.hamcrest.Matchers.hasKey
|
||||
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
@ -61,6 +62,14 @@ class PiperPublishWarningsTest extends BasePiperTest {
|
||||
JenkinsUtils.metaClass.static.isPluginActive = { id -> return true}
|
||||
}
|
||||
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
JenkinsUtils.metaClass.addWarningsNGParser = null
|
||||
JenkinsUtils.metaClass.static.getFullBuildLog = null
|
||||
JenkinsUtils.metaClass.static.isPluginActive = null
|
||||
}
|
||||
|
||||
@Test
|
||||
void testPublishWarnings() throws Exception {
|
||||
stepRule.step.piperPublishWarnings(script: nullScript)
|
||||
|
Loading…
x
Reference in New Issue
Block a user