You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by limaia <li...@gmail.com> on 2015/06/30 18:44:09 UTC

junit, weblogic and ldap

Hi,

I'm a starter on wicket. 
My project is running on Oracle weblogic WebServer and I don't use Maven. 
I'm a little confused how to start to program unit tests using wickettester.

There are any tutorial that I could follow?

thanks

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/junit-weblogic-and-ldap-tp4671432.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: junit, weblogic and ldap

Posted by Martin Grigorov <mg...@apache.org>.
On Wed, Jul 1, 2015 at 2:16 PM, limaia <li...@gmail.com> wrote:

> Hi!
>
> There is my test code:
> http://pastebin.com/87TQjcyR <http://pastebin.com/87TQjcyR>
>
> And there is th code being tested, where the error occurred:
> http://pastebin.com/VGVmQjSP <http://pastebin.com/VGVmQjSP>
>
> I suppose I have to configure manually the context. Is it right?
>

Yes.


>
> thanks,
> cumps,
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/junit-weblogic-and-ldap-tp4671432p4671444.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: junit, weblogic and ldap

Posted by limaia <li...@gmail.com>.
Hi!

There is my test code:
http://pastebin.com/87TQjcyR <http://pastebin.com/87TQjcyR>  

And there is th code being tested, where the error occurred:
http://pastebin.com/VGVmQjSP <http://pastebin.com/VGVmQjSP>  

I suppose I have to configure manually the context. Is it right?

thanks,
cumps, 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/junit-weblogic-and-ldap-tp4671432p4671444.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: junit, weblogic and ldap

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

It seems your unit test is actually an integration test.
WicketTester doesn't need an actual web server running.
Your test (ot the code being tested) assumes that there is a real
application server running and tries to lookup something from JNDI.
Can you share the test with us? Paste it in a pastebin service.

Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Jul 1, 2015 at 1:37 PM, limaia <li...@gmail.com> wrote:

> Thanks for answer me!
>
> I tried this tutorial.
> But when I run as JUnit Test, the eclipse show the following error:
> /Need to specify class name in environment or system property, or as an
> applet parameter, or in an application resource file:
> java.naming.factory.initial./
>
> thanks,
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/junit-weblogic-and-ldap-tp4671432p4671439.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: junit, weblogic and ldap

Posted by limaia <li...@gmail.com>.
Thanks for answer me!

I tried this tutorial. 
But when I run as JUnit Test, the eclipse show the following error:
/Need to specify class name in environment or system property, or as an
applet parameter, or in an application resource file: 
java.naming.factory.initial./

thanks,

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/junit-weblogic-and-ldap-tp4671432p4671439.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: junit, weblogic and ldap

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Please check our user guide:
http://ci.apache.org/projects/wicket/guide/7.x/guide/testing.html

Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Jun 30, 2015 at 7:44 PM, limaia <li...@gmail.com> wrote:

> Hi,
>
> I'm a starter on wicket.
> My project is running on Oracle weblogic WebServer and I don't use Maven.
> I'm a little confused how to start to program unit tests using
> wickettester.
>
> There are any tutorial that I could follow?
>
> thanks
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/junit-weblogic-and-ldap-tp4671432.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>