Skip to content

Commit 5e41d6e

Browse files
Copilotbaywet
andcommitted
test: remove public modifier from test methods in ParseNodeTests
Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>
1 parent 6c70a65 commit 5e41d6e

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

  • components/serialization/form/src/test/java/com/microsoft/kiota/serialization

components/serialization/form/src/test/java/com/microsoft/kiota/serialization/ParseNodeTests.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class ParseNodeTests {
4949
"id=48d31887-5fad-4d73-a9f5-3c356e68a038";
5050

5151
@Test
52-
public void getsEntityValueFromForm() {
52+
void getsEntityValueFromForm() {
5353
final FormParseNode parseNode = new FormParseNode(testUserForm);
5454
final TestEntity entity =
5555
parseNode.getObjectValue(TestEntity::createFromDiscriminatorValue);
@@ -69,7 +69,7 @@ public void getsEntityValueFromForm() {
6969
}
7070

7171
@Test
72-
public void getCollectionOfObjectValuesFromForm() {
72+
void getCollectionOfObjectValuesFromForm() {
7373
final FormParseNode parseNode = new FormParseNode(testUserForm);
7474
assertThrows(
7575
RuntimeException.class,
@@ -79,14 +79,14 @@ public void getCollectionOfObjectValuesFromForm() {
7979
}
8080

8181
@Test
82-
public void returnsDefaultIfChildNodeDoesNotExist() {
82+
void returnsDefaultIfChildNodeDoesNotExist() {
8383
final FormParseNode parseNode = new FormParseNode(testUserForm);
8484
final ParseNode childNode = parseNode.getChildNode("doesNotExist");
8585
assertNull(childNode);
8686
}
8787

8888
@Test
89-
public void getCollectionOfBooleanPrimitiveValuesFromForm() {
89+
void getCollectionOfBooleanPrimitiveValuesFromForm() {
9090
final String TestFormData = "bools=true&" + "bools=false";
9191
final ParseNode numberNode = new FormParseNode(TestFormData).getChildNode("bools");
9292
final List<Boolean> numberCollection =
@@ -97,7 +97,7 @@ public void getCollectionOfBooleanPrimitiveValuesFromForm() {
9797
}
9898

9999
@Test
100-
public void getCollectionOfGuidPrimitiveValuesFromForm() {
100+
void getCollectionOfGuidPrimitiveValuesFromForm() {
101101
final String TestFormData =
102102
"ids=48d31887-5fad-4d73-a9f5-3c356e68a038&"
103103
+ "ids=48d31887-5fad-4d73-a9f5-3c356e68a038";
@@ -140,7 +140,7 @@ void testInvalidOffsetDateTimeStringThrowsException(final String dateTimeString)
140140
}
141141

142142
@Test
143-
public void getCollectionOfStringPrimitiveValuesFromForm() {
143+
void getCollectionOfStringPrimitiveValuesFromForm() {
144144
final String testFormData = "names=Alice&names=Bob";
145145
final ParseNode node = new FormParseNode(testFormData).getChildNode("names");
146146
final List<String> result = node.getCollectionOfPrimitiveValues(String.class);
@@ -151,7 +151,7 @@ public void getCollectionOfStringPrimitiveValuesFromForm() {
151151
}
152152

153153
@Test
154-
public void getCollectionOfIntegerPrimitiveValuesFromForm() {
154+
void getCollectionOfIntegerPrimitiveValuesFromForm() {
155155
final String testFormData = "nums=1&nums=2&nums=3";
156156
final ParseNode node = new FormParseNode(testFormData).getChildNode("nums");
157157
final List<Integer> result = node.getCollectionOfPrimitiveValues(Integer.class);
@@ -163,7 +163,7 @@ public void getCollectionOfIntegerPrimitiveValuesFromForm() {
163163
}
164164

165165
@Test
166-
public void getCollectionOfLongPrimitiveValuesFromForm() {
166+
void getCollectionOfLongPrimitiveValuesFromForm() {
167167
final String testFormData = "vals=100&vals=200";
168168
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
169169
final List<Long> result = node.getCollectionOfPrimitiveValues(Long.class);
@@ -174,7 +174,7 @@ public void getCollectionOfLongPrimitiveValuesFromForm() {
174174
}
175175

176176
@Test
177-
public void getCollectionOfDoublePrimitiveValuesFromForm() {
177+
void getCollectionOfDoublePrimitiveValuesFromForm() {
178178
final String testFormData = "vals=1.5&vals=2.5";
179179
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
180180
final List<Double> result = node.getCollectionOfPrimitiveValues(Double.class);
@@ -185,7 +185,7 @@ public void getCollectionOfDoublePrimitiveValuesFromForm() {
185185
}
186186

187187
@Test
188-
public void getCollectionOfFloatPrimitiveValuesFromForm() {
188+
void getCollectionOfFloatPrimitiveValuesFromForm() {
189189
final String testFormData = "vals=1.5&vals=2.5";
190190
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
191191
final List<Float> result = node.getCollectionOfPrimitiveValues(Float.class);
@@ -196,7 +196,7 @@ public void getCollectionOfFloatPrimitiveValuesFromForm() {
196196
}
197197

198198
@Test
199-
public void getCollectionOfShortPrimitiveValuesFromForm() {
199+
void getCollectionOfShortPrimitiveValuesFromForm() {
200200
final String testFormData = "vals=10&vals=20";
201201
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
202202
final List<Short> result = node.getCollectionOfPrimitiveValues(Short.class);
@@ -207,7 +207,7 @@ public void getCollectionOfShortPrimitiveValuesFromForm() {
207207
}
208208

209209
@Test
210-
public void getCollectionOfBytePrimitiveValuesFromForm() {
210+
void getCollectionOfBytePrimitiveValuesFromForm() {
211211
final String testFormData = "vals=1&vals=2";
212212
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
213213
final List<Byte> result = node.getCollectionOfPrimitiveValues(Byte.class);
@@ -218,7 +218,7 @@ public void getCollectionOfBytePrimitiveValuesFromForm() {
218218
}
219219

220220
@Test
221-
public void getCollectionOfBigDecimalPrimitiveValuesFromForm() {
221+
void getCollectionOfBigDecimalPrimitiveValuesFromForm() {
222222
final String testFormData = "vals=123.45&vals=678.90";
223223
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
224224
final List<BigDecimal> result = node.getCollectionOfPrimitiveValues(BigDecimal.class);
@@ -229,7 +229,7 @@ public void getCollectionOfBigDecimalPrimitiveValuesFromForm() {
229229
}
230230

231231
@Test
232-
public void getCollectionOfOffsetDateTimePrimitiveValuesFromForm() {
232+
void getCollectionOfOffsetDateTimePrimitiveValuesFromForm() {
233233
final String dt1 = "2024-01-01T00:00:00Z";
234234
final String dt2 = "2024-06-15T12:30:00Z";
235235
final String testFormData =
@@ -247,7 +247,7 @@ public void getCollectionOfOffsetDateTimePrimitiveValuesFromForm() {
247247
}
248248

249249
@Test
250-
public void getCollectionOfLocalDatePrimitiveValuesFromForm() {
250+
void getCollectionOfLocalDatePrimitiveValuesFromForm() {
251251
final String testFormData = "vals=2024-01-01&vals=2024-06-15";
252252
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
253253
final List<LocalDate> result = node.getCollectionOfPrimitiveValues(LocalDate.class);
@@ -258,7 +258,7 @@ public void getCollectionOfLocalDatePrimitiveValuesFromForm() {
258258
}
259259

260260
@Test
261-
public void getCollectionOfLocalTimePrimitiveValuesFromForm() {
261+
void getCollectionOfLocalTimePrimitiveValuesFromForm() {
262262
final String testFormData = "vals=08:00:00&vals=17:30:00";
263263
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
264264
final List<LocalTime> result = node.getCollectionOfPrimitiveValues(LocalTime.class);
@@ -269,7 +269,7 @@ public void getCollectionOfLocalTimePrimitiveValuesFromForm() {
269269
}
270270

271271
@Test
272-
public void getCollectionOfPeriodAndDurationPrimitiveValuesFromForm() {
272+
void getCollectionOfPeriodAndDurationPrimitiveValuesFromForm() {
273273
final String testFormData = "vals=P1M&vals=PT2H";
274274
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
275275
final List<PeriodAndDuration> result =
@@ -281,7 +281,7 @@ public void getCollectionOfPeriodAndDurationPrimitiveValuesFromForm() {
281281
}
282282

283283
@Test
284-
public void getCollectionOfPrimitiveValuesThrowsForUnknownType() {
284+
void getCollectionOfPrimitiveValuesThrowsForUnknownType() {
285285
final String testFormData = "vals=foo";
286286
final ParseNode node = new FormParseNode(testFormData).getChildNode("vals");
287287
assertThrows(

0 commit comments

Comments
 (0)