1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-10-18 12:15:58 +02:00

[sinttest] Minor fixes in AdHocCommandIntegrationTest

This commit is contained in:
Florian Schmaus 2024-01-10 10:18:10 +01:00
parent b5180f819f
commit 282d63da36

View file

@ -1,6 +1,6 @@
/**
*
* Copyright 2023 Florian Schmaus
* Copyright 2023-2024 Florian Schmaus
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -93,7 +93,7 @@ public class AdHocCommandIntegrationTest extends AbstractSmackIntegrationTest {
private static DataForm createDataFormOp() {
FormField field = FormField.listSingleBuilder("op")
.setLabel("Arthimetic Operation")
.setLabel("Arithmetic Operation")
.setRequired()
.addOption("+")
.addOption("-")
@ -118,7 +118,6 @@ public class AdHocCommandIntegrationTest extends AbstractSmackIntegrationTest {
NextStage.nonFinal).build();
}
// TODO: Add API for every case where we return null or throw below.
private static Integer extractIntegerField(SubmitForm form, String fieldName) throws XMPPErrorException {
FormField field = form.getField(fieldName);
if (field == null)