File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/test/java/com/ibm/watson/developer_cloud/dialog/v1 Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 2828
2929import org .apache .commons .lang3 .time .DateUtils ;
3030import org .junit .Before ;
31+ import org .junit .Ignore ;
3132import org .junit .Test ;
3233
3334import com .ibm .watson .developer_cloud .WatsonServiceTest ;
@@ -134,6 +135,27 @@ public void testGetContent() {
134135 assertNotNull (content );
135136 }
136137
138+ /**
139+ * Test profile variable encoding.
140+ */
141+ @ Test
142+ @ Ignore
143+ public void testProfileVariableEncoding () {
144+ String variable = "size" , value = "Germán" ;
145+
146+ // start a conversation
147+ Conversation c = service .createConversation (dialogId );
148+
149+ // update profile with a non-ascii value
150+ Map <String , String > profile = new HashMap <String ,String >();
151+ profile .put (variable , value );
152+ service .updateProfile (dialogId , c .getClientId (), profile );
153+
154+ // verify that value is equal to the one in the profile
155+ profile = service .getProfile (dialogId , c .getClientId (), variable );
156+ assertEquals (profile .get (variable ), value );
157+ }
158+
137159 /**
138160 * Test converse with nulls.
139161 */
You can’t perform that action at this time.
0 commit comments