@@ -321,37 +321,43 @@ public void testDynamicStates() {
321
321
assertFalse (this .touchPortalPluginTest .sendCreateState (null , null , null , "" ));
322
322
assertFalse (this .touchPortalPluginTest .sendCreateState ("" , "" , "" , "" ));
323
323
324
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , null , null , null ));
325
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , "" , null , null ));
326
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , null , "" , null ));
327
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , null , null , "" ));
328
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , "" , "" , "" ));
324
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , null , null , null ));
325
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , "" , null , null ));
326
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , null , "" , null ));
327
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , null , null , "" ));
328
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , "" , "" , "" ));
329
329
330
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , "SateId " , null , null ));
331
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , "SateId " , "" , null ));
332
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , "SateId " , null , "" ));
333
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , "SateId " , "" , "" ));
330
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , "StateId " , null , null ));
331
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , "StateId " , "" , null ));
332
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , "StateId " , null , "" ));
333
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , "StateId " , "" , "" ));
334
334
335
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , "SateId " , "Dynamically Created State" , null ));
336
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , "SateId " , "Dynamically Created State" , "" ));
335
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , "StateId " , "Dynamically Created State" , null ));
336
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , "StateId " , "Dynamically Created State" , "" ));
337
337
338
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId" , "StateId" , "Dynamically Created State" , null , true , false ));
339
- assertTrue (this .touchPortalPluginTest .sendCreateState ("CategoryId" , "StateId" , "Dynamically Created State" , "" , true , false ));
340
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId" , "StateId" , "Dynamically Created State" , "" , true , false ));
341
- assertTrue (this .touchPortalPluginTest .sendCreateState ("CategoryId" , "StateId" , "Dynamically Created State" , "" , true , true ));
338
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "Dynamically Created State" , null , true , false ));
339
+ assertTrue (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "Dynamically Created State" , "" , true , false ));
340
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "Dynamically Created State" , "" , true , false ));
341
+ assertTrue (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "Dynamically Created State" , "" , true , true ));
342
+
343
+ assertTrue (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "Dynamically Created State" , "Default Value 01" ));
344
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "Dynamically Created State" , "Default Value 01" ));
345
+ assertTrue (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "Dynamically Created State" , "Default Value 02" ));
346
+
347
+ assertTrue (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "Parent" , "Dynamically Created State" , "Default Value 01" ));
348
+ assertTrue (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "" , "Dynamically Created State" , "Default Value 02" ));
349
+ assertTrue (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , null , "Dynamically Created State" , "Default Value 03" ));
350
+ assertTrue (this .touchPortalPluginTest .sendCreateState ("BaseCategory" , "StateId" , "Parent" , "Dynamically Created State" , "Default Value 04" , true , false ));
342
351
343
- assertTrue (this .touchPortalPluginTest .sendCreateState ("CategoryId" , "SateId" , "Dynamically Created State" , "Default Value 01" ));
344
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId" , "SateId" , "Dynamically Created State" , "Default Value 01" ));
345
- assertTrue (this .touchPortalPluginTest .sendCreateState ("CategoryId" , "SateId" , "Dynamically Created State" , "Default Value 02" ));
346
352
347
353
assertFalse (this .touchPortalPluginTest .sendRemoveState (null , null ));
348
354
assertFalse (this .touchPortalPluginTest .sendRemoveState ("" , null ));
349
355
assertFalse (this .touchPortalPluginTest .sendRemoveState (null , "" ));
350
356
assertFalse (this .touchPortalPluginTest .sendRemoveState ("" , "" ));
351
- assertFalse (this .touchPortalPluginTest .sendRemoveState ("CategoryId " , null ));
352
- assertFalse (this .touchPortalPluginTest .sendRemoveState ("CategoryId " , "" ));
357
+ assertFalse (this .touchPortalPluginTest .sendRemoveState ("BaseCategory " , null ));
358
+ assertFalse (this .touchPortalPluginTest .sendRemoveState ("BaseCategory " , "" ));
353
359
354
- assertTrue (this .touchPortalPluginTest .sendRemoveState ("CategoryId " , "SateId " ));
360
+ assertTrue (this .touchPortalPluginTest .sendRemoveState ("BaseCategory " , "StateId " ));
355
361
}
356
362
357
363
@ Test
@@ -360,8 +366,8 @@ public void testSendFail() {
360
366
assertFalse (this .touchPortalPluginTest .sendStateUpdate (TouchPortalPluginTestConstants .BaseCategory .States .CustomState .ID , "New Value" ));
361
367
assertFalse (this .touchPortalPluginTest .sendChoiceUpdate ("listId" , null , true ));
362
368
assertFalse (this .touchPortalPluginTest .sendSpecificChoiceUpdate ("listId" , "instanceId" , null , true ));
363
- assertFalse (this .touchPortalPluginTest .sendCreateState ("CategoryId " , "SateId " , "Dynamically Created State" , "Default Value 01" ));
364
- assertFalse (this .touchPortalPluginTest .sendRemoveState ("CategoryId " , "SateId " ));
369
+ assertFalse (this .touchPortalPluginTest .sendCreateState ("BaseCategory " , "StateId " , "Dynamically Created State" , "Default Value 01" ));
370
+ assertFalse (this .touchPortalPluginTest .sendRemoveState ("BaseCategory " , "StateId " ));
365
371
}
366
372
367
373
@ Test
0 commit comments