Skip to content

Commit 68a3cba

Browse files
authored
Javadoc assertions (#348)
Signed-off-by: Jorge Bescos Gascon <[email protected]>
1 parent df20c9c commit 68a3cba

File tree

4 files changed

+38
-8
lines changed

4 files changed

+38
-8
lines changed

tck/tck-docs/assertions/JSONP2.0JavadocAssertions.html renamed to tck/tck-docs/assertions/JSONP2.1JavadocAssertions.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
3+
Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved.
44
55
This program and the accompanying materials are made available under the
66
terms of the Eclipse Public License v. 2.0, which is available at
@@ -2654,6 +2654,24 @@ <h2> Jakarta JSON Processing - 2.0<br>
26542654
<br>
26552655
</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD>
26562656
</TR>
2657+
<TR>
2658+
<TD align="center" valign="center"><a name="JSONP:JAVADOC:681"></a><font size="1PT">JSONP:JAVADOC:681</font></TD><TD align="center" valign="center"><font size="1PT">enum</font></TD><TD align="left" valign="center"><font size="1PT">jakarta.json.JsonConfig.KeyStrategy<br>
2659+
</font></TD><TD align="left" valign="center"><font size="1PT">Defines the different values allowed for KEY_STRATEGY.</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD><TD align="center" valign="center"><font size="1PT">
2660+
<br>
2661+
</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD>
2662+
</TR>
2663+
<TR>
2664+
<TD align="center" valign="center"><a name="JSONP:JAVADOC:682"></a><font size="1PT">JSONP:JAVADOC:682</font></TD><TD align="center" valign="center"><font size="1PT">JsonNumber</font></TD><TD align="left" valign="center"><font size="1PT">jakarta.json.Json.createValue(Number value)<br>
2665+
</font></TD><TD align="left" valign="center"><font size="1PT">Creates a JsonNumber.</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD><TD align="center" valign="center"><font size="1PT">
2666+
<br>
2667+
</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD>
2668+
</TR>
2669+
<TR>
2670+
<TD align="center" valign="center"><a name="JSONP:JAVADOC:683"></a><font size="1PT">JSONP:JAVADOC:683</font></TD><TD align="center" valign="center"><font size="1PT">Event</font></TD><TD align="left" valign="center"><font size="1PT">jakarta.json.stream.JsonParser.currentEvent<br>
2671+
</font></TD><TD align="left" valign="center"><font size="1PT">The event for the current parsing state.</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD><TD align="center" valign="center"><font size="1PT">
2672+
<br>
2673+
</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD>
2674+
</TR>
26572675
</TABLE>
26582676
</body>
26592677
</html>

tck/tck-tests/src/main/java/jakarta/jsonp/tck/api/jsonparsertests/ClientTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -1852,6 +1852,8 @@ public void jsonParser11Test() {
18521852
/*
18531853
* @testName: jsonParserCurrentEvent
18541854
*
1855+
* @assertion_ids: JSONP:JAVADOC:683;
1856+
*
18551857
* @test_Strategy: Tests JsonParser API methods added in JSON-P 2.1.
18561858
*/
18571859
@Test

tck/tck-tests/src/main/java/jakarta/jsonp/tck/api/jsonreadertests/ClientTests.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -3165,7 +3165,9 @@ public void jsonReader11Test() {
31653165

31663166
/*
31673167
* @testName: testDuplicateKeysDefault
3168-
*
3168+
*
3169+
* @assertion_ids: JSONP:JAVADOC:681;
3170+
*
31693171
* @test_Strategy: Tests key strategy added in JSON-P 2.1.
31703172
*/
31713173
@Test
@@ -3181,7 +3183,9 @@ public void testDuplicateKeysDefault() {
31813183

31823184
/*
31833185
* @testName: testDuplicateKeysNone
3184-
*
3186+
*
3187+
* @assertion_ids: JSONP:JAVADOC:681;
3188+
*
31853189
* @test_Strategy: Tests key strategy added in JSON-P 2.1.
31863190
*/
31873191
@Test
@@ -3199,7 +3203,9 @@ public void testDuplicateKeysNone() {
31993203

32003204
/*
32013205
* @testName: testDuplicateKeysFirst
3202-
*
3206+
*
3207+
* @assertion_ids: JSONP:JAVADOC:681;
3208+
*
32033209
* @test_Strategy: Tests key strategy added in JSON-P 2.1.
32043210
*/
32053211
@Test
@@ -3216,7 +3222,9 @@ public void testDuplicateKeysFirst() {
32163222

32173223
/*
32183224
* @testName: testDuplicateKeysLast
3219-
*
3225+
*
3226+
* @assertion_ids: JSONP:JAVADOC:681;
3227+
*
32203228
* @test_Strategy: Tests key strategy added in JSON-P 2.1.
32213229
*/
32223230
@Test

tck/tck-tests/src/main/java/jakarta/jsonp/tck/api/jsonvaluetests/ClientTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -338,6 +338,8 @@ public void jsonStructure11Test() {
338338
/*
339339
* @testName: jsonNumber21Test
340340
*
341+
* @assertion_ids: JSONP:JAVADOC:682;
342+
*
341343
* @test_Strategy: Tests Json.createValue(Number) API method added in JSON-P 2.1.
342344
*/
343345
@Test

0 commit comments

Comments
 (0)