You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2013/04/11 08:41:16 UTC

[jira] [Commented] (WW-4043) Duplicated class TestUtils

    [ https://issues.apache.org/jira/browse/WW-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13628718#comment-13628718 ] 

Lukasz Lenart commented on WW-4043:
-----------------------------------

The problem is that the JUnit plugin depends on the Core so you cannot move that class to the JUnit plugin and reuse it in the Core. The only option is to move it to src/main/java in the Core or create another sub-project - struts-utils and move there all the classes used by Core and other sub-projects.
                
> Duplicated class TestUtils
> --------------------------
>
>                 Key: WW-4043
>                 URL: https://issues.apache.org/jira/browse/WW-4043
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - JSON
>    Affects Versions: 2.3.14
>            Reporter: Maurizio Cucchiara
>            Priority: Minor
>             Fix For: 2.3.15
>
>
> Currently there are 2 TestUtils which basically do the same thing.
> Since they are on test directory, ATM there is no way to reuse the one present on core module.
> The only way I can prefigure is by moving TestUtils class inside Junit Plugin (after all is a test utility class and -either the core and- json plugin depend on junit plugin).
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira