此内容没有您所选择的语言版本。
18.3. Testing the camel-jbossdatagrid-fuse Quickstart
To test the
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
Once the file has been removed from the directory then the producer has successfully parsed the file. Proceed to testing the consumer.
local_cache_producer
create a CSV file in the incomingFolderPath
, previously specified. The following command will generate a file with a single entry:
echo "1,Bill,Gates,59" > $incomingFolderPath/sample.csv
echo "1,Bill,Gates,59" > $incomingFolderPath/sample.csv
To test the
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
local_cache_consumer
navigate to http://127.0.0.1:8282/cache/get/1
in a web browser. This will query the cache for the entry with an Id of 1
, which was specified above. The following JSON of the created POJO should be returned:
{"id":1,"firstName":"Bill","lastName":"Gates","age":59}
{"id":1,"firstName":"Bill","lastName":"Gates","age":59}