Skip to content

Commit d0ea807

Browse files
committed
xml parser config tests
1 parent 0d053a0 commit d0ea807

File tree

3 files changed

+934
-38
lines changed

3 files changed

+934
-38
lines changed

README.md

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -89,43 +89,8 @@ Execution failed for task ':compileJava'.
8989
> invalid flag: -parameters
9090
```
9191

92-
A unit test has the following stages:
93-
94-
| Test phase |Description |
95-
|----|----|
96-
| No test | No test specifically for this class has been written, or the class contains no executable code. |
97-
| In progress | Unit tests have been started for this class. |
98-
| Coverage > 90% | Initial goal of 90% coverage has been reached. Test quality may be questionable |
99-
| Reasonable test cases | 90% coverage. Functionality and behavior has been confirmed |
100-
| Checked against previous unit tests | Historical unit tests have been checked in case something important was missed |
101-
| Completed | The unit test is completed |
102-
103-
104-
| Test file name | Coverage | Comments |
105-
| ------------- | ------------- | ---- |
106-
| Total coverage | 90.6% | | |
107-
| | | |
108-
| CDL.java | 98.8% | Reasonable test cases. |
109-
| Cookie.java | 98.9% | Reasonable test cases. |
110-
| CookieList.java |96.5% | Reasonable test cases. |
111-
| HTTP.java | 98.8%| Coverage > 90% |
112-
| HTTPTokener.java |93.2% | No test |
113-
| JSONArray.java |88.3% | Reasonable test cases. Need new tests for newer API functions |
114-
| JSONException.java | 100% | No test |
115-
| JSONML.java | 84.4%| In progress |
116-
| JSONObject | 96.7% | Reasonable test cases |
117-
| JSONObject.Null | 77.8% | No test |
118-
| JSONPointer | 96.3% | Reasonable test cases |
119-
| JSONPointerException | 100% | No test |
120-
| JSONString.java | | No test |
121-
| JSONStringer.java | 93.8%| Coverage > 90% |
122-
| JSONTokener.java | 87.5% | In progress |
123-
| JSONWriter.java | 89.15% | No test |
124-
| Property.java | 95.8% | Coverage > 90% |
125-
| XML.java | 77.3% | In progress |
126-
| XMLTokener.java| 82.4%| No test |
127-
128-
| Files used in test |
92+
93+
| Resource files used in test |
12994
| ------------- |
13095
| EnumTest.java |
13196
| MyBean.java |

src/test/java/org/json/junit/JunitTestSuite.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
EnumTest.class,
1919
JSONPointerTest.class,
2020
JSONStringTest.class,
21-
JSONTokenerTest.class
21+
JSONTokenerTest.class,
22+
XMLConfigurationTest.class
2223
})
2324
public class JunitTestSuite {
2425
}

0 commit comments

Comments
 (0)