File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ sourceSets {
1414 java {
1515 srcDir ' src/test'
1616 }
17+ resources {
18+ srcDir ' resources'
19+ }
1720 }
1821}
1922
Original file line number Diff line number Diff line change 44import static org .junit .Assert .assertSame ;
55import static org .junit .Assert .fail ;
66
7- import org .json .JSONObject ;
8- import org .json .JSONPointer ;
9- import org .json .JSONPointerException ;
10- import org .json .JSONTokener ;
7+ import org .json .*;
118import org .junit .Test ;
129
1310public class JSONPointerTest {
@@ -16,7 +13,7 @@ public class JSONPointerTest {
1613
1714 static {
1815 document = new JSONObject (new JSONTokener (
19- JSONPointerTest .class .getResourceAsStream ("/org/json/junit/ jsonpointer-testdoc.json" )));
16+ JSONPointerTest .class .getClassLoader (). getResourceAsStream ("jsonpointer-testdoc.json" )));
2017 }
2118
2219 private Object query (String pointer ) {
Original file line number Diff line number Diff line change 1414 JSONStringerTest .class ,
1515 JSONObjectTest .class ,
1616 JSONArrayTest .class ,
17- EnumTest .class
17+ EnumTest .class ,
18+ JSONPointerTest .class
1819})
1920public class JunitTestSuite {
20- }
21+ }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments