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

Niels Basjes commented on SCM-939:
----------------------------------

My current assessment is that I cannot fix this simply 'in' this project 
without effectively copying the entire 
[https://github.com/apache/maven-plugin-testing] in here too.

The main problems I have bumped into
 * Because the tests all must extend AbstractMojoTestCase I cannot simply 
extend them from both classes.
 * Some methods need to be overridden in AbstractMojoTestCase but they are final
 * Some methods (like setupContainer()) can be overridden but the output is NOT 
a value. The output is directly written to a local property.

So right now I see 3 viable routes (I assume there are more):
 * Change [https://github.com/apache/maven-plugin-testing] to support Junit 4 
(5?)
 * Copy much of [https://github.com/apache/maven-plugin-testing] into maven-scm 
and go from there
 * Use reflection to forcefully overwrite/override what needs to be changed.

Please advise on hoe to proceed [~michael-o] 

 

> Assume SCM is present
> ---------------------
>
>                 Key: SCM-939
>                 URL: https://issues.apache.org/jira/browse/SCM-939
>             Project: Maven SCM
>          Issue Type: Bug
>            Reporter: Elliotte Rusty Harold
>            Priority: Minor
>
> We have a lot of tests that do something like this:
>  
> if ( !ScmTestCase.isSystemCmd( SvnScmTestUtils.SVN_COMMAND_LINE ) )
>  {
>  ScmTestCase.printSystemCmdUnavail( SvnScmTestUtils.SVN_COMMAND_LINE, 
> getName() );
>  return;
>  }
>  
> We should instead use org.*junit*.*Assume* here so these are marked as 
> skipped rather than passed.
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to