adding org.springframework.test package to spring-2.5.6-SEC01.jar in netbeans

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2011-01-03T17:35:51Z Indexed on 2011/01/03 17:54 UTC
Read the original article Hit count: 188

Filed under:
|
|
|

This is probably very simple, however I can't get this to work. I want to use AbstractDependencyInjectionSpringContextTest class which is in org.springframework.test package. This package is not included in Netbeans' spring library, so I want to add it. So what I have tried so far is:

  • copy and paste "test" directory (downloaded from spring) into the Netbeans' spring-2.5.6-SEC01.jar file (copy it to org.springframework directory in that jar so I can use org.springframework.test to import it). If I go to project/libraries in Netbeans it is there, but when I try to import org.springframework.test.*; the autocomplition doesn't give me the option to choose test directory from org.soringframework package.

  • create a new library which points to "test" directory and add it to the project- as there is no any jar file in "test" I'm not sure what path should I use to import it.

I'm pretty sure this is something very simple but I'm still a novice and can't figure this out.

© Stack Overflow or respective owner

Related posts about java

Related posts about spring