directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Commented: (DIRSNICKERS-91) Fix broken testcases that break only under maven
Date Wed, 25 Aug 2004 17:41:20 GMT
The following comment has been added to this issue:

     Author: Enrique Rodriguez
    Created: Wed, 25 Aug 2004 10:40 AM
If those unit tests are reading resources, say files of bytes to test the codecs, then they
are probably running into classloading differences between the IDE and CLI-run ant/maven/etc.
 If so, the trick is to use:

InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(resource);

... wrapping that however you need to, say with a FileInputStream.

View this comment:

View the issue:

Here is an overview of the issue:
        Key: DIRSNICKERS-91
    Summary: Fix broken testcases that break only under maven
       Type: Bug

     Status: In Progress
   Priority: Major

    Project: Directory Snickers
             LDAP Provider

   Assignee: Alex Karasulu
   Reporter: Alex Karasulu

    Created: Wed, 25 Aug 2004 10:00 AM
    Updated: Wed, 25 Aug 2004 10:40 AM

Basically we have a few test cases for the encoders and apparently a decoder as well.  These
test cases are breaking when maven runs them but do not when run under IntelliJ so there must
be a jar dep mismatch somewhere. 

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message