Re: [appfuse-user] execute junit tests in eclipse

2007-09-07 Thread Abel Muiño
Hi! arief wrote: > > Maybe Abel was right, that i need to configure the .classpath file > correctly so that everything can be resolved perfectly by eclipse-junit. > But i'm not sure how to do that in Candy. > Well, at the moment Candy just creates the AppFuse project, so there's no special s

Re: [appfuse-user] execute junit tests in eclipse

2007-09-06 Thread arief
I'm able to run the junit test inside eclipse now.. that is using appfuse-2.0-RC1 created using commandline. Followed the guidelines given on how to use appfuse with eclipse. Maybe Abel was right, that i need to configure the .classpath file correctly so that everything can be resolved perfectly

Re: [appfuse-user] execute junit tests in eclipse

2007-08-09 Thread Abel Muiño
When you use the "Maven > Update Source Folders", the http://m2eclipse.codehaus.org/ m2eclipse plugin bundled with http://candy4appfuse.sourceforge.net Candy tries to set the eclipse build path exactly as the maven classpath. You should review the eclipse Build Path for the project and make s

Re: [appfuse-user] execute junit tests in eclipse

2007-08-08 Thread arief
Yes, I could run the "mvn test". All test ran successfully. Initially, i used Candy4Appfuse. But now, the project that created just now is not using candy. And it still showing me that error. After googling around, several result came out and one of it answered by Rod ( http://forum.springframewo

Re: [appfuse-user] execute junit tests in eclipse

2007-08-08 Thread arief
Thanks Matt, I have tried them.. first running the "mvn resources..." but failed. Then I replaced the jdbc.properties with the actual values.. and still not working. Then, i tried to create the project using the mvn create new project from archtype (not from candy4appfuse that i used before) and

Re: [appfuse-user] execute junit tests in eclipse

2007-08-08 Thread Matt Raible
Can you run your tests from the command line using "mvn test"? If so, then it's probably an Eclipse issue. If you're using Candy4AppFuse, it may be related to that as well. Matt On 8/8/07, arief <[EMAIL PROTECTED]> wrote: > > Thanks Matt, I have tried them.. first running the "mvn resources..." b

Re: [appfuse-user] execute junit tests in eclipse

2007-08-06 Thread Matt Raible
If you run "mvn resources:testResources", you should be able to refresh your project in Eclipse and run tests. The reason for this is jdbc.properties needs to be parsed and replaced with the proper values from your pom.xml. If that doesn't work for you, you can make jdbc.properties your source of

Re: [appfuse-user] execute junit tests in eclipse

2007-08-06 Thread arief
Hi, Anybody able to run junit test in eclipse? my environment: - appfuse 2.0 rc1 - struts 2.0.9 - ibatis with oracle9 I'm a newbie on appfuse. Tried following the tutorial. I could build it using "mvn test" but if i could do run test inside eclipse, that would be great. my eclipse stack trace i

Re: [appfuse-user] execute junit tests in eclipse

2007-05-19 Thread Will Berger
thanks matt...that definantly got it. Here is the final syntax. I included the WEB-INF directory and that was incorrect. Here is what my spring subpublic class ScenarioDAOFileImplTest extends AbstractSingleSpringContextTests { public ScenarioDAOFileImplTest(String testName) {

Re: [appfuse-user] execute junit tests in eclipse

2007-05-18 Thread Matt Raible
If looks like you need a comma between your last two paths. Also, it should be "classpath*:/applicationContext-dao.xml" for appfuse-hibernate. Matt On 5/18/07, Will Berger <[EMAIL PROTECTED]> wrote: It appears we deriving from a spring class. public class ScenarioDAOFileImplTest extends Abstr

Re: [appfuse-user] execute junit tests in eclipse

2007-05-18 Thread Will Berger
It appears we deriving from a spring class. public class ScenarioDAOFileImplTest extends AbstractSingleSpringContextTests String[] retCode = { "classpath:/WEB-INF/applicationContext.xml","classpath:/applicationContext-resources.xml"}; does this need to become protected Stri

Re: [appfuse-user] execute junit tests in eclipse

2007-05-18 Thread Matt Raible
Are you extending one of AppFuse's TestCase classes, or are you writing your own? If your own, what path are you using to load applicationContext-dao.xml? It should be the same one that's used in web.xml and the Base*TestCase classes. Matt On 5/18/07, Will Berger <[EMAIL PROTECTED]> wrote:

Re: [appfuse-user] execute junit tests in eclipse

2007-05-18 Thread Will Berger
Matt, I am not having an issue with eclipse, but rather, I am using the sessionFactory in one of my dao it is referenced in my bean defn in muy web-inf/applicationContext.xml. When I run the appserver(jetty) without the unit test, apparently the appfuse-hibernate.jar that contains the seesionfacto

Re: [appfuse-user] execute junit tests in eclipse

2007-05-17 Thread Matt Raible
If you run "mvn package" in your project and refresh it in Eclipse, you should be able to run your JUnit tests. Matt On 5/17/07, Will Berger <[EMAIL PROTECTED]> wrote: I am having the same problem, when I reference sessionFactory in my dao definition in the applicationContext.xml the junit te

Re: [appfuse-user] execute junit tests in eclipse

2007-05-17 Thread Will Berger
I am having the same problem, when I reference sessionFactory in my dao definition in the applicationContext.xml the junit tests fail. Anyone know why this is the case? Will wnqq wrote: > > Have anyone successfully executed junit tests in eclipse? > > My environment: > * Appfuse v2.0M4 + st

Re: [appfuse-user] execute junit tests in eclipse

2007-04-02 Thread wnqq
Dear Matt, Thanks for the guidance. I haven't got any luck yet. Anyway, I will give it some more tries later. mraible wrote: > > You may need to turn off "build automatically" in Eclipse. It's > likely overriding your target/classes/jdbc.properties with the > unparsed one in src/main/resource

Re: [appfuse-user] execute junit tests in eclipse

2007-04-02 Thread Matt Raible
You may need to turn off "build automatically" in Eclipse. It's likely overriding your target/classes/jdbc.properties with the unparsed one in src/main/resources/jdbc.properties. Another option (which I haven't tried) is to make src/main/resources/jdbc.properties the source and modify pom.xml to

Re: [appfuse-user] execute junit tests in eclipse

2007-04-02 Thread wnqq
I tried "mvn clean compile" and refresh eclipse, but still got the "circular placeholder reference" errors. It looks like it has nothing to do with jdbc.properties. mraible wrote: > > You probably need to run "mvn compile" from the command line first - > so jdbc.properties gets copied to the ta

Re: [appfuse-user] execute junit tests in eclipse

2007-04-02 Thread Matt Raible
You probably need to run "mvn compile" from the command line first - so jdbc.properties gets copied to the target directory and its values get replaced. Matt On 4/2/07, wnqq <[EMAIL PROTECTED]> wrote: Have anyone successfully executed junit tests in eclipse? My environment: * Appfuse v2.0M4 +

[appfuse-user] execute junit tests in eclipse

2007-04-02 Thread wnqq
Have anyone successfully executed junit tests in eclipse? My environment: * Appfuse v2.0M4 + struts + hibernate * eclipse v3.2.1 I can successfully run PersonManagerTest, however, I am unable to finish the tests of PersonDaoTest nor PersonActionTest. The steps I did are: right click on PersonDao