Skip to content

Commit

Permalink
Javadoc assertions (#348)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
  • Loading branch information
jbescos authored Jan 11, 2022
1 parent df20c9c commit 68a3cba
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -2654,6 +2654,24 @@ <h2> Jakarta JSON Processing - 2.0<br>
<br>
</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD>
</TR>
<TR>
<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>
</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">
<br>
</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD>
</TR>
<TR>
<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>
</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">
<br>
</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD>
</TR>
<TR>
<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>
</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">
<br>
</font></TD><TD align="center" valign="center"><font size="1PT">true</font></TD>
</TR>
</TABLE>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -1852,6 +1852,8 @@ public void jsonParser11Test() {
/*
* @testName: jsonParserCurrentEvent
*
* @assertion_ids: JSONP:JAVADOC:683;
*
* @test_Strategy: Tests JsonParser API methods added in JSON-P 2.1.
*/
@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -3165,7 +3165,9 @@ public void jsonReader11Test() {

/*
* @testName: testDuplicateKeysDefault
*
*
* @assertion_ids: JSONP:JAVADOC:681;
*
* @test_Strategy: Tests key strategy added in JSON-P 2.1.
*/
@Test
Expand All @@ -3181,7 +3183,9 @@ public void testDuplicateKeysDefault() {

/*
* @testName: testDuplicateKeysNone
*
*
* @assertion_ids: JSONP:JAVADOC:681;
*
* @test_Strategy: Tests key strategy added in JSON-P 2.1.
*/
@Test
Expand All @@ -3199,7 +3203,9 @@ public void testDuplicateKeysNone() {

/*
* @testName: testDuplicateKeysFirst
*
*
* @assertion_ids: JSONP:JAVADOC:681;
*
* @test_Strategy: Tests key strategy added in JSON-P 2.1.
*/
@Test
Expand All @@ -3216,7 +3222,9 @@ public void testDuplicateKeysFirst() {

/*
* @testName: testDuplicateKeysLast
*
*
* @assertion_ids: JSONP:JAVADOC:681;
*
* @test_Strategy: Tests key strategy added in JSON-P 2.1.
*/
@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -338,6 +338,8 @@ public void jsonStructure11Test() {
/*
* @testName: jsonNumber21Test
*
* @assertion_ids: JSONP:JAVADOC:682;
*
* @test_Strategy: Tests Json.createValue(Number) API method added in JSON-P 2.1.
*/
@Test
Expand Down

0 comments on commit 68a3cba

Please sign in to comment.