From 282d63da36049746410cfc0462169900e29fd071 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 10 Jan 2024 10:18:10 +0100 Subject: [PATCH] [sinttest] Minor fixes in AdHocCommandIntegrationTest --- .../smackx/commands/AdHocCommandIntegrationTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/smack-integration-test/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandIntegrationTest.java b/smack-integration-test/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandIntegrationTest.java index b4821f48ed..f29f07f911 100644 --- a/smack-integration-test/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandIntegrationTest.java +++ b/smack-integration-test/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandIntegrationTest.java @@ -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 @@ private static DataForm createDataForm(String variableName) { private static DataForm createDataFormOp() { FormField field = FormField.listSingleBuilder("op") - .setLabel("Arthimetic Operation") + .setLabel("Arithmetic Operation") .setRequired() .addOption("+") .addOption("-") @@ -118,7 +118,6 @@ protected AdHocCommandData execute(AdHocCommandDataBuilder response) throws XMPP 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)