Matt Raible-3 wrote:
> 
> 
> You shouldn't need to.  
> 
> Which web framework are you using?  
> 

I am using SpringMVC, Appfuse 1.9.4


Matt Raible-3 wrote:
> 
> Have you
> modified any of the Eclipse project files?  
> 

I'm note sure what you mean by that...but I think what you mean is:
 "Have you gone into the project properties of Eclipse and modified the
settings in there?"...which I have in the following ways:

-  I've added a bunch of jars to the classpath.
   (which seemed to be included there already by appfuse but are apprently
not registering with the problems tab)
   (The old ones (seemingly included by Appfuse) have a jar icon with some
books by them, new ones I added myself, just have the jar icon)

- I also every so often after a build:
   1. Remove all the src/* and test/* directories from the project, and
click ok.
   2. Re-add all of the src/* and test/* directorys to the project 
      (of course adding them not directly by selecting the src and test
directories but rather individually by selecting 
       the individual sub-directories)
       My reason for doing this being that it clears up the errors in the
Problems tab until the next build.



Matt Raible-3 wrote:
> 
> All of the generated code
> should be in Eclipse's classpath, but we might be missing something.
> Is it an AppFuse core class or one of your own?
> 
It is a JUnitTest that I wrote.  

(by core classes you mean Base, Role, and User classes right? nothing that
was added by me..) when I run the tests in ant (ant integrated with eclipse)
and they work fine, yes all of them core and mine) 

But if I run the test through JUnit integrated with Eclipse  I get the error
I spoke of in my previous post.  

And it doesn't matter if the JUnit tests were written by me or by Appfuse,
the same error shows up.  

I'm thinking that maybe I don't have the JUnit integrated with Eclipse
configured right...

My reason for doing this
My motive here is to be able to debug the JUnit tests to see if Hibernate is
loading the entire database or just loading properties and relationships as
needed, which I can't tell from just logging since I have to access the
property to log it's value.  This in-turn causes the property to load (...or
does it?) and my question cannot be answered from logging.

- Andrew


>
> By the way, I am right clicking the unit test in Package Explorer and
> selecting Run As..->JUnit Test.
>
> Thank you,
>    Andrew J. Leer
>
>
> Matt Raible-3 wrote:
> >
> > If you run "ant war" and refresh your project in Eclipse, you should be
> > able
> > to run your tests.  The only thing you might need to do is run "ant
> > db-load"
> > every now and then.
> >
> > Matt
> >
> > On 12/5/06, maskkkk <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Is it possible to run my Appfuse JUnit tests in Eclipse?
> >> (so that I can debug them)
> >>
> >> I've been trying to do so, and I get an error about:
> >>
> >>
> >> JUnit wrote:
> >> >
> >> > org.springframework.beans.factory.BeanInitializationException: Could
> >> not
> >> > load properties; nested exception is java.io.FileNotFoundException:
> >> > classpath resource [mail.properties] cannot be opened because it does
> >> not
> >> > exist.
> >> >
> >>
> >> I think I read somewhere that this can be fixed by setting something up
> >> in
> >> the setUp() method of the junit test, is this true?
> >>
> >> Thanks again,
> >>   Andrew J. Leer
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/JUnit-Tests-in-Eclipse--tf2761983s2369.html#a7700334
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/JUnit-Tests-in-Eclipse--tf2761983s2369.html#a7701091
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
View this message in context: 
http://www.nabble.com/JUnit-Tests-in-Eclipse--tf2761983s2369.html#a7702790
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to