-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marcus Kaufmann
committed
Apr 10, 2018
1 parent
a53a9d8
commit f924d78
Showing
7 changed files
with
81 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...com/xceptance/neodymium/testclasses/data/pkg/properties/CanReadPackageDataProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.xceptance.neodymium.testclasses.data.pkg.properties; | ||
|
||
import java.util.Map; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import com.xceptance.neodymium.NeodymiumRunner; | ||
import com.xceptance.neodymium.util.Context; | ||
|
||
@RunWith(NeodymiumRunner.class) | ||
public class CanReadPackageDataProperties | ||
{ | ||
@Test | ||
public void test() | ||
{ | ||
Map<String, String> data = Context.get().data; | ||
Assert.assertEquals(2, data.size()); | ||
Assert.assertEquals("Properties Value1", data.get("pkgParam1")); | ||
Assert.assertEquals("Properties Value2", data.get("pkgParam2")); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
.../java/com/xceptance/neodymium/testclasses/data/pkg/properties/package_testdata.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pkgParam1 = Properties Value1 | ||
pkgParam2 = Properties Value2 |
23 changes: 23 additions & 0 deletions
23
src/test/java/com/xceptance/neodymium/testclasses/data/pkg/xml/CanReadPackageDataXML.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.xceptance.neodymium.testclasses.data.pkg.xml; | ||
|
||
import java.util.Map; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import com.xceptance.neodymium.NeodymiumRunner; | ||
import com.xceptance.neodymium.util.Context; | ||
|
||
@RunWith(NeodymiumRunner.class) | ||
public class CanReadPackageDataXML | ||
{ | ||
@Test | ||
public void test() | ||
{ | ||
Map<String, String> data = Context.get().data; | ||
Assert.assertEquals(2, data.size()); | ||
Assert.assertEquals("XML Value1", data.get("pkgParam1")); | ||
Assert.assertEquals("XML Value2", data.get("pkgParam2")); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/java/com/xceptance/neodymium/testclasses/data/pkg/xml/package_testdata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<datafile> | ||
<dataset> | ||
<data key="pkgParam1">XML Value1</data> | ||
<data key="pkgParam2">XML Value2</data> | ||
</dataset> | ||
</datafile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters