Skip to content

Commit

Permalink
[sinttest] Minor fixes in AdHocCommandIntegrationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Jan 10, 2024
1 parent b5180f8 commit 282d63d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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("-")
Expand All @@ -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)
Expand Down

0 comments on commit 282d63d

Please sign in to comment.