Ok Julien, now I understand. I am not using maven, but if its necessary i will :) Let me know when you deploy the snapshot, and tell me what to do.
Thanks a lot for your help. Gustavo. >From: Julien HENRY <[EMAIL PROTECTED]> >Reply-To: Usage problems for jWebUnit ><[email protected]> >To: Usage problems for jWebUnit <[email protected]> >Subject: [Jwebunit-users] Re : Re : Re : Exception in constructor >Date: Fri, 3 Nov 2006 08:17:11 +0000 (GMT) > >No, the refactoring I'm talking about are currently only on SVN in 1.x >branch. I will try to deploy a Maven snapshot in our private repository. >Are you using Maven for your build ? > >++ > >Julien > >----- Message d'origine ---- >De : Gustavo Pichetto <[EMAIL PROTECTED]> >À : [email protected] >Envoyé le : Jeudi, 2 Novembre 2006, 14h14mn 11s >Objet : Re: [Jwebunit-users] Re : Re : Exception in constructor > >Julien, >actually I am working with jWebUnit 1.3. Do you mean that? > > > >From: Julien HENRY <[EMAIL PROTECTED]> > >Reply-To: Usage problems for jWebUnit > ><[email protected]> > >To: Usage problems for jWebUnit <[email protected]> > >Subject: [Jwebunit-users] Re : Re : Exception in constructor > >Date: Thu, 2 Nov 2006 08:10:43 +0000 (GMT) > > > >Do you have a proxy in your enterprise ? With authentication ? > > > >If it's the case, you may need to test the latest version of jWebUnit >1.x, > >where I did some refactoring for authentication (Basic, Digest, NTLM, > >Proxy, ...). > > > >----- Message d'origine ---- > >De : Gustavo Pichetto <[EMAIL PROTECTED]> > >À : [email protected] > >Envoyé le : Mercredi, 1 Novembre 2006, 20h51mn 17s > >Objet : Re: [Jwebunit-users] Re : Exception in constructor > > > >Thanks Julien! > >It worked. > > > >Now I have some conection problem. > >java.lang.RuntimeException: java.net.ConnectException: Connection >refused: > >connect > >I guess it is because of proxy or firewall. > > > >Thanks a lot! > >Gustavo. > > > > > > >From: Julien HENRY <[EMAIL PROTECTED]> > > >Reply-To: Usage problems for jWebUnit > > ><[email protected]> > > >To: Usage problems for jWebUnit <[email protected]> > > >Subject: [Jwebunit-users] Re : Exception in constructor > > >Date: Wed, 1 Nov 2006 17:25:03 +0000 (GMT) > > > > > >Hi, > > > > > >Did you try to put the setBaseUrl in the setUp method ? Like this : > > > > > >import net.sourceforge.jwebunit.WebTestCase; > > > > > >public class ExampleWebTestCase extends WebTestCase { > > > > > > public ExampleWebTestCase(String name) throws Exception { > > > super(name); > > > } > > > > > > public void setUp() { > > > super.setUp(); > > > getTestContext().setBaseUrl("http://www.google.ca/";;); > > > } > > > > > > public void testMainPageLinks() { > > > beginAt("/"); > > > assertLinkPresent("Images"); > > > clickLink("Images"); > > > assertTitleEquals("Google Image Search"); > > > } > > > > > >} > > > > > >----- Message d'origine ---- > > >De : Gustavo Pichetto <[EMAIL PROTECTED]> > > >À : [email protected] > > >Envoyé le : Mercredi, 1 Novembre 2006, 16h45mn 06s > > >Objet : [Jwebunit-users] Exception in constructor > > > > > >Hello, > > >I have just started to use jwebUnit, following the sample in the >"getting > > >started" documentation in the jwebUnit. Debbugin in > > >getTestContext().setBaseUrl("http://www.google.ca/";;;) I got this > >exception: > > > > > > > > >junit.framework.AssertionFailedError: Exception in constructor: > > >testMainPageLinks (java.lang.NullPointerException > > > at > > > >net.sourceforge.jwebunit.WebTestCase.getTestContext(WebTestCase.java:84) > > > at Ingreso.ExampleWebTestCase.<init>(ExampleWebTestCase.java:10) > > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > >Method) > > > at > > > >sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > > > at > > > >sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > > > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > > at junit.framework.TestSuite.createTest(TestSuite.java:60) > > > at junit.framework.TestSuite.addTestMethod(TestSuite.java:279) > > > at junit.framework.TestSuite.<init>(TestSuite.java:142) > > > at > > > >com.intellij.rt.execution.junit.TestRunnerUtil.createClassOrMethodSuite(TestRunnerUtil.java:127) > > > at > > > >com.intellij.rt.execution.junit.TestRunnerUtil.getTestSuite(TestRunnerUtil.java:65) > > > at > > > >com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:23) > > > at > > > >com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118) > > > at > > >com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) > > >) > > > > > >Here the class: > > > > > >import net.sourceforge.jwebunit.WebTestCase; > > > > > >public class ExampleWebTestCase extends WebTestCase { > > > > > > public ExampleWebTestCase(String name) throws Exception { > > > super(name); > > > getTestContext().setBaseUrl("http://www.google.ca/";;;); > > > } > > > > > > public void testMainPageLinks() { > > > beginAt("http://www.google.ca";;;); > > > assertLinkPresent("Images"); > > > clickLink("Images"); > > > assertTitleEquals("Google Image Search"); > > > } > > > > > >} > > > > > > > > >Can somebody help me? Thanks! > > >Gustavo. > > > > > >_________________________________________________________________ > > >Sabe más sobre la próxima generación del MSN Messenger. > > >http://imagine-msn.com/minisites/messenger/default.aspx?locale=es-ar > > > > > > > > > >------------------------------------------------------------------------- > > >Using Tomcat but need to do more? Need to support web services, >security? > > >Get stuff done quickly with pre-integrated technology to make your job > > >easier > > >Download IBM WebSphere Application Server v.1.0.1 based on Apache > >Geronimo > > > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > >_______________________________________________ > > >Jwebunit-users mailing list > > >[email protected] > > >https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >___________________________________________________________________________ > > >Découvrez une nouvelle façon d'obtenir des réponses à toutes vos > >questions > > >! > > >Profitez des connaissances, des opinions et des expériences des > >internautes > > >sur Yahoo! Questions/Réponses > > >http://fr.answers.yahoo.com > > > > > > > >------------------------------------------------------------------------- > > >Using Tomcat but need to do more? Need to support web services, >security? > > >Get stuff done quickly with pre-integrated technology to make your job > > >easier > > >Download IBM WebSphere Application Server v.1.0.1 based on Apache > >Geronimo > > > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > >_______________________________________________ > > >Jwebunit-users mailing list > > >[email protected] > > >https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > > >_________________________________________________________________ > >Sabe más sobre la próxima generación del MSN Messenger. > >http://imagine-msn.com/minisites/messenger/default.aspx?locale=es-ar > > > > > >------------------------------------------------------------------------- > >Using Tomcat but need to do more? Need to support web services, security? > >Get stuff done quickly with pre-integrated technology to make your job > >easier > >Download IBM WebSphere Application Server v.1.0.1 based on Apache >Geronimo > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >_______________________________________________ > >Jwebunit-users mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > > > > > > > > > > > > > > > > > > > > > > >___________________________________________________________________________ > >Découvrez une nouvelle façon d'obtenir des réponses à toutes vos >questions > >! > >Profitez des connaissances, des opinions et des expériences des >internautes > >sur Yahoo! Questions/Réponses > >http://fr.answers.yahoo.com > > > >------------------------------------------------------------------------- > >Using Tomcat but need to do more? Need to support web services, security? > >Get stuff done quickly with pre-integrated technology to make your job > >easier > >Download IBM WebSphere Application Server v.1.0.1 based on Apache >Geronimo > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > >_______________________________________________ > >Jwebunit-users mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >_________________________________________________________________ >Consigue aquí las mejores y mas recientes ofertas de trabajo en América >Latina y USA: http://latam.msn.com/empleos/ > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job >easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Jwebunit-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > > > > > > > > > > >___________________________________________________________________________ >Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son >interface révolutionnaire. >http://fr.mail.yahoo.com >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job >easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Jwebunit-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jwebunit-users _________________________________________________________________ Regístrate en el nuevo Windows Live Messenger beta. http://imagine-msn.com/minisites/messenger/default.aspx?locale=es-ar ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jwebunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
