Skip to content

Commit 376af69

Browse files
committed
Use property file for bank plant test
Needs to change testdata
1 parent 2034f87 commit 376af69

4 files changed

Lines changed: 167 additions & 162 deletions

File tree

generator/org.svis.generator.tests/src/org/svis/generator/tests/plant/famix/Bank_PlantTest.xtend

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import java.io.File
88
import java.io.FileNotFoundException
99
import org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher
1010
import org.apache.commons.io.FileUtils
11+
import org.svis.generator.SettingsConfiguration
1112

1213
class Bank_PlantTest {
1314

@@ -17,8 +18,8 @@ class Bank_PlantTest {
1718
def static void launch() {
1819
XMLUnit::ignoreWhitespace = true
1920
XMLUnit::ignoreComments = true
20-
new Mwe2Launcher().run(#["../org.svis.generator.run/src/org/svis/generator/run/plant/Famix2Plant.mwe2", "-p", "path=testdata/bank/input/famix", "outputPath=" + path,
21-
"configPath=testdata/bank/input/famix/plantConfig.json","projectName=org.svis.generator.tests","texturDestinyPath=org.svis.generator.tests/output/plant/famix/bank/pics"])
21+
SettingsConfiguration.getInstance("../org.svis.generator.tests/testdata/bank/input/BankPlantTest.properties")
22+
new Mwe2Launcher().run(#["../org.svis.generator.run/src/org/svis/generator/run/plant/Famix2Plant.mwe2", "-p", "path=testdata/bank/input/famix", "outputPath=" + path, "projectName=org.svis.generator.tests","texturDestinyPath=org.svis.generator.tests/output/plant/famix/bank/pics"])
2223
}
2324

2425
@Test
@@ -51,7 +52,7 @@ class Bank_PlantTest {
5152

5253

5354
@Test
54-
def rd() {
55+
def plant() {
5556
var File file1 = null
5657
var File file2 = null
5758
try {
@@ -65,7 +66,7 @@ class Bank_PlantTest {
6566
}
6667

6768
@Test
68-
def rdExtended() {
69+
def plantExtended() {
6970
var File file1 = null
7071
var File file2 = null
7172

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#plant.class.texture_head_brown = <ImageTexture url='pics/bloom.png' scale='false' />
2+
3+
#plant.inner_class.texture_bloom = <ImageTexture url='pics/junctionHeadTopPart.png' scale='false' />
4+
plant.method.use_textures = false

0 commit comments

Comments
 (0)