Sha256: 90606c0baaa197e61fb94051bce5244a1159624fb3c134f1f2a97438aec24bdd

Contents?: true

Size: 1.13 KB

Versions: 8

Compression:

Stored size: 1.13 KB

Contents

We check whether a custom converter for lists can be used to change how lists are returned to the wiki.

Whether a converter is applied to a method's result depends on its declared return type:

 * List (exactly, no sub-interface or class implementing it): converter is '''not applied''' (this is needed for some Slim tables, such as !-QueryTable-!).
 * All return types: converter is applied, based on the actual class of the object returned, or on its declared type when !style_code[null] is returned 


|import            |
|fitnesse.slim.test|

|script   |!-TestSlimWithConverter-!|
|check    |get object     |[a, b, c]|
|check    |get list       |[a, b, c]|
|check    |get array list |[a, b, c]|
|same list|[a, b, c]                |
|set list converter                 |
|check    |get object     |{a, b, c}|
|check    |get list       |[a, b, c]|
|check    |get array list |{a, b, c}|
|same list|{a, b, c}                |
|same list|[a, b, c]                |
|remove list converter              |
|check    |get object     |[a, b, c]|
|check    |get list       |[a, b, c]|
|check    |get array list |[a, b, c]|
|same list|[a, b, c]                |

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestCustomConverter/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestCustomConverter/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestCustomConverter/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestCustomConverter/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestCustomConverter/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestCustomConverter/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestCustomConverter/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestCustomConverter/content.txt