directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From directory-...@incubator.apache.org
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
       Body:
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:
  http://issues.apache.org/jira/browse/DIRSNICKERS-91?page=comments#action_37458

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/DIRSNICKERS-91

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
 Components: 
             LDAP Provider

   Assignee: Alex Karasulu
   Reporter: Alex Karasulu

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

Description:
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. 


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message