[infinispan-issues] [JBoss JIRA] (ISPN-1963) SampleConfigFilesCorrectnessTest does not work when run from IDE

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Tue Apr 10 09:55:50 EDT 2012


    [ https://issues.jboss.org/browse/ISPN-1963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682673#comment-12682673 ] 

Galder Zamarreño commented on ISPN-1963:
----------------------------------------

IntelliJ on Mac. I think this can easily be solved by having getRootFolder() look like this:

{code}
   private File getRootFolder() {
      File file = new File(new File(CONFIG_ROOT).getAbsolutePath());
      //this is a hack. If the tests are run from core folder then following if should not be entered.
      //otherwise assume we are runnin
      if (!file.isDirectory()) {
         file = new File("core/" + CONFIG_ROOT);
      }
      return file;
   }
{code}

I think that'd make everyone happy. Can you try that in those environments?
                
> SampleConfigFilesCorrectnessTest does not work when run from IDE
> ----------------------------------------------------------------
>
>                 Key: ISPN-1963
>                 URL: https://issues.jboss.org/browse/ISPN-1963
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 5.1.3.FINAL
>            Reporter: Galder Zamarreño
>            Assignee: Martin Gencur
>             Fix For: 5.1.4.FINAL
>
>
> As a result of changes in ISPN-1911, the test does not work any more when run from IDE. This is because the new getRootFolder() impl does not accomodate when the test is run from IDE. Please find an implementation that works for all:
> - running from cmd line, for UNIX env. 
> - running from cmd line for windows env
> - running from IDE

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list