summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMili Verma <mili.verma@isode.com>2012-02-23 17:38:30 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-02-23 17:39:04 (GMT)
commit9adba9899fcf98db402e279970056f7a2ada7915 (patch)
treeeaf83641bb78b23c0c16331944afbd000c0d2949 /test/com/isode
parentc80110013f16d8aa4e6e9801e01ce9ccab1e6592 (diff)
downloadstroke-9adba9899fcf98db402e279970056f7a2ada7915.zip
stroke-9adba9899fcf98db402e279970056f7a2ada7915.tar.bz2
Fix Stroke to allow empty values
This patch gives a fix to a client of Stroke can send emtpty values in form fields. Test-information: Tests pass. Before patch, MLC is not able to send empty values in updates. After the patch, it is.
Diffstat (limited to 'test/com/isode')
-rw-r--r--test/com/isode/stroke/serializer/payloadserializers/FormSerializerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/com/isode/stroke/serializer/payloadserializers/FormSerializerTest.java b/test/com/isode/stroke/serializer/payloadserializers/FormSerializerTest.java
index 4a1ccc0..7636eb4 100644
--- a/test/com/isode/stroke/serializer/payloadserializers/FormSerializerTest.java
+++ b/test/com/isode/stroke/serializer/payloadserializers/FormSerializerTest.java
@@ -125,13 +125,13 @@ public class FormSerializerTest {
+ "<value>jabber:bot</value>"
+ "</field>"
+ "<field type=\"fixed\"><value>Section 1: Bot Info</value></field>"
- + "<field label=\"The name of your bot\" type=\"text-single\" var=\"botname\"/>"
+ + "<field label=\"The name of your bot\" type=\"text-single\" var=\"botname\"><value></value></field>"
+ "<field label=\"Helpful description of your bot\" type=\"text-multi\" var=\"description\"><value>This is a bot.</value><value>A quite good one actually</value></field>"
+ "<field label=\"Public bot?\" type=\"boolean\" var=\"public\">"
+ "<required/>"
+ "<value>1</value>"
+ "</field>"
- + "<field label=\"Password for special access\" type=\"text-private\" var=\"password\"/>"
+ + "<field label=\"Password for special access\" type=\"text-private\" var=\"password\"><value></value></field>"
+ "<field label=\"What features will the bot support?\" type=\"list-multi\" var=\"features\">"
+ "<value>news</value>"
+ "<value>search</value>"