Open bluesliverx opened 12 years ago
I get the same issue when I run tests using -baseUrl. It seems that the DefaultConverterConfiguration is not initialized when targetting a particular server or using -war option.
I did try to initialize DefaultConverterConfiguration but with no luck . The only workaround I have found so far to work is to use "content" instead of "json" and creating "content" using JsonBuilder. This workaround also requires you to explicitly set contentType to "application/json".
(No JIRA project yet, so I thought I would enter it here) I'm using the plugin in functional testing, and it works great with a typical test-app functional: run, but fails when doing test-app functional: -war. The reason:
The code that is failing is the 'json' declaration of the RestBuilder.put method. I am pretty much following your example, which again works great typically but is failing during functional WAR tests:
Not sure if it's because the application is not wired up the same in the functional tests where the app is not in the same JVM? I am using the geb plugin which is providing the functional testing abilities.