[
https://issues.apache.org/jira/browse/DERBY-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tiago R. Espinha updated DERBY-3834:
------------------------------------
Attachment: DERBY-3834.patch
Attaching a new patch to this issue.
After having discussed this with Kathey on IRC, we agreed on an alternative
solution for this issue. Instead of separating the locale test from the actual
RuntimeInfo test, I created a LocaleTestSetup decorator that allows the test to
run with different localizations.
The solution I found to manage the expected outputs was to use an HashMaps
inside HashMaps. This way we're able to select the set of expected outputs for
a certain locale easily, and then it is also easy to pick the correct output
message within the results for that locale. It might not be the best solution
performance-wise, but this way it is rather easy to add new locales to be
tested, should we want to.
Still, some input and alternative ideas are appreciated.
> Convert derbynet/runtimeinfo to JUnit
> -------------------------------------
>
> Key: DERBY-3834
> URL: https://issues.apache.org/jira/browse/DERBY-3834
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.5.1.1
> Reporter: Erlend Birkenes
> Assignee: Tiago R. Espinha
> Priority: Minor
> Attachments: DERBY-3834.patch, DERBY-3834.patch, DERBY-3834.patch,
> DERBY-3834.patch, DERBY-3834.stat, Derby-3834_1.diff
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.