You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -17,22 +18,25 @@ data from JSON Strings or files in parameterized tests.
17
18
## Installation
18
19
19
20
### Apache Maven
21
+
20
22
```xml
21
23
<dependency>
22
24
<groupId>net.joshka</groupId>
23
25
<artifactId>junit-json-params</artifactId>
24
-
<version>5.6.2-r1</version>
26
+
<version>5.9.1-r0</version>
25
27
</dependency>
26
28
```
27
29
28
30
### Gradle
31
+
29
32
```groovy
30
-
compile 'net.joshka:junit-json-params:5.6.2-r1'
33
+
compile 'net.joshka:junit-json-params:5.9.1-r0'
31
34
```
32
35
33
36
## Examples
34
37
35
38
### `@JsonSource`
39
+
36
40
`@JsonSource` allows you to specify argument lists as JSON strings.
37
41
38
42
See [`JsonArgumentsProviderTest`](https://github.com/joshka/junit-json-params/blob/master/src/test/java/net/joshka/junit/json/params/JsonArgumentsProviderTest.java)
@@ -102,6 +106,7 @@ class JsonArgumentsProviderTest {
102
106
```
103
107
104
108
### `@JsonFileSource`
109
+
105
110
`@JsonFileSource` lets you use JSON files from the classpath. It supports
106
111
single objects and arrays of objects and JSON primitives (numbers and strings).
107
112
@@ -160,6 +165,7 @@ class JsonFileArgumentsProviderTest {
0 commit comments