[ http://issues.apache.org/jira/browse/TAPESTRY-710?page=all ]
Mind Bridge closed TAPESTRY-710:
--------------------------------
Resolution: Fixed
> TapestryUtils.split() misses some corner cases.
> -----------------------------------------------
>
> Key: TAPESTRY-710
> URL: http://issues.apache.org/jira/browse/TAPESTRY-710
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Geoff Longman
> Priority: Minor
>
> add these tests to org.apache.tapestry.TestTapestryUtils
> public void testSplitDelimiterOnly()
> {
> assertListsEqual(new String[] {}, TapestryUtils.split("|", '|'));
> }
>
> public void testSplitDelimitersOnly()
> {
> assertListsEqual(new String[] {}, TapestryUtils.split("||", '|'));
> }
>
> public void testSplitDelimiterOnlyStart()
> {
> assertListsEqual(new String[] {"rocky"},
> TapestryUtils.split("|rocky", '|'));
> }
>
> public void testSplitDelimiterOnlyEnd()
> {
> assertListsEqual(new String[] {"rocky"},
> TapestryUtils.split("rocky|", '|'));
> }
> They all fail. I'll look at it but not until I get Spindle rolling along
> again.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]