1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
Alejandra Ferreiro Vidal 2018-02-05 15:39:18 +01:00
parent 8075157ea2
commit cafa0a703b

View File

@ -47,7 +47,7 @@ public class MTABuildTest extends BasePipelineTest {
binding.setVariable('PATH', '/usr/bin')
mtaBuildScript = loadScript("mtaBuild.groovy").mtaBuild
mtaBuildScript = loadScript('mtaBuild.groovy').mtaBuild
cpe = loadScript('commonPipelineEnvironment.groovy').commonPipelineEnvironment
}
@ -59,7 +59,7 @@ public class MTABuildTest extends BasePipelineTest {
mtaBuildScript.call(buildTarget: 'NEO')
assert jscr.shell[1].contains("PATH=./node_modules/.bin:/usr/bin")
assert jscr.shell[1].contains('PATH=./node_modules/.bin:/usr/bin')
}
@ -120,7 +120,7 @@ public class MTABuildTest extends BasePipelineTest {
assert jscr.shell[1].contains(' -jar mta.jar --mtar ')
assert jlr.log.contains( "[mtaBuild] Using MTA JAR from current working directory." )
assert jlr.log.contains('[mtaBuild] Using MTA JAR from current working directory.')
}
@ -135,7 +135,7 @@ public class MTABuildTest extends BasePipelineTest {
assert jscr.shell[1].contains(' -jar /mylocation/mta/mta.jar --mtar ')
assert jlr.log.contains("[mtaBuild] MTA JAR \"/mylocation/mta/mta.jar\" retrieved from parameters.".toString())
assert jlr.log.contains('[mtaBuild] MTA JAR "/mylocation/mta/mta.jar" retrieved from parameters.')
}
@ -172,7 +172,7 @@ public class MTABuildTest extends BasePipelineTest {
@Test
public void noBuildTargetTest(){
thrown.expect(Exception)
thrown.expectMessage("ERROR - NO VALUE AVAILABLE FOR buildTarget")
thrown.expectMessage('ERROR - NO VALUE AVAILABLE FOR buildTarget')
new File("${currentDir}/mta.yaml") << defaultMtaYaml()