Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » junit & project organization in M3.0
junit & project organization in M3.0 [message #157398] Wed, 05 May 2004 21:41 Go to next message
Eclipse UserFriend
I'd like to set up my project to have separate directories for src and
test, with the tests having package visibility to their related source. I
would have thought it to be something like
MyProject/src/com/classes.HelloWorld and another directory under MyProject
for test/classes.TestHelloWorld.

Except I don't get package visibility for my test case this way. Have I got
the idea wrong? Are there additional Eclipse settings I need to make?

Thanks in advance,
- Eric
Re: junit & project organization in M3.0 [message #157446 is a reply to message #157398] Thu, 06 May 2004 05:05 Go to previous messageGo to next message
Eclipse UserFriend
See Help:
http://help.eclipse.org/help21/index.jsp?topic=/org.eclipse. jdt.doc.user/gettingStarted/qs-WorkingWithExistingLayout3.ht m

Jerome

"Eric" <eric.fingerhut@verizon.net> wrote in message
news:c7c4oi$n4g$1@eclipse.org...
> I'd like to set up my project to have separate directories for src and
> test, with the tests having package visibility to their related source. I
> would have thought it to be something like
> MyProject/src/com/classes.HelloWorld and another directory under MyProject
> for test/classes.TestHelloWorld.
>
> Except I don't get package visibility for my test case this way. Have I
got
> the idea wrong? Are there additional Eclipse settings I need to make?
>
> Thanks in advance,
> - Eric
>
>
Re: junit & project organization in M3.0 [message #157454 is a reply to message #157398] Thu, 06 May 2004 06:58 Go to previous messageGo to next message
Eclipse UserFriend
eric,

we ran into this earlier with jbuilder.

in general two classes are considered to be in the same
package, if their package names are equal AND they are
loaded through the same class loader!

common ides seem to create separate class loaders for
distinct source folders, even if they compile into the same
output folder ;-(

/eike


"Eric" <eric.fingerhut@verizon.net> schrieb im Newsbeitrag news:c7c4oi$n4g$1@eclipse.org...
> I'd like to set up my project to have separate directories for src and
> test, with the tests having package visibility to their related source. I
> would have thought it to be something like
> MyProject/src/com/classes.HelloWorld and another directory under MyProject
> for test/classes.TestHelloWorld.
>
> Except I don't get package visibility for my test case this way. Have I got
> the idea wrong? Are there additional Eclipse settings I need to make?
>
> Thanks in advance,
> - Eric
>
>
Re: junit & project organization in M3.0 [message #157604 is a reply to message #157446] Thu, 06 May 2004 15:23 Go to previous message
Eclipse UserFriend
"Jerome Lanneluc" <jerome_lanneluc@fr.ibm.com> wrote in message
news:c7cunp$h7b$1@eclipse.org...
> See Help:
>
http://help.eclipse.org/help21/index.jsp?topic=/org.eclipse. jdt.doc.user/gettingStarted/qs-WorkingWithExistingLayout3.ht m
>
> Jerome
>
> "Eric" <eric.fingerhut@verizon.net> wrote in message
> news:c7c4oi$n4g$1@eclipse.org...
> > I'd like to set up my project to have separate directories for src and
> > test, with the tests having package visibility to their related source.
I
> > would have thought it to be something like
> > MyProject/src/com/classes.HelloWorld and another directory under
MyProject
> > for test/classes.TestHelloWorld.
> >
> > Except I don't get package visibility for my test case this way. Have I
> got
> > the idea wrong? Are there additional Eclipse settings I need to make?
> >
> > Thanks in advance,
> > - Eric
> >
> >
>
>

Thanks!
Previous Topic:Eclipse Ant Tasks don't work on using the Ant Launcher in M8
Next Topic:How to rename a Project?
Goto Forum:
  


Current Time: Sat May 10 14:39:12 EDT 2025

Powered by FUDForum. Page generated in 0.07078 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top