From jboss-remoting-commits at lists.jboss.org Tue May 13 01:04:24 2008 Content-Type: multipart/mixed; boundary="===============2581742294466739402==" MIME-Version: 1.0 From: jboss-remoting-commits at lists.jboss.org To: jboss-remoting-commits at lists.jboss.org Subject: [jboss-remoting-commits] JBoss Remoting SVN: r4181 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http. Date: Tue, 13 May 2008 01:04:20 -0400 Message-ID: --===============2581742294466739402== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ron.sigal(a)jboss.com Date: 2008-05-13 01:04:19 -0400 (Tue, 13 May 2008) New Revision: 4181 Added: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/= HTTPInvokerSecurityClientTest.java remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/= HTTPInvokerSecurityServerTest.java remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/= HTTPInvokerSecurityTestCase.java Log: JBREM-978: New unit test for http security suite. Added: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/h= ttp/HTTPInvokerSecurityClientTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http= /HTTPInvokerSecurityClientTest.java (rev 0) +++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http= /HTTPInvokerSecurityClientTest.java 2008-05-13 05:04:19 UTC (rev 4181) @@ -0,0 +1,40 @@ +/* +* JBoss, Home of Professional Open Source +* Copyright 2005, JBoss Inc., and individual contributors as indicated +* by the @authors tag. See the copyright.txt in the distribution for a +* full listing of individual contributors. +* +* This is free software; you can redistribute it and/or modify it +* under the terms of the GNU Lesser General Public License as +* published by the Free Software Foundation; either version 2.1 of +* the License, or (at your option) any later version. +* +* This software is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this software; if not, write to the Free +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +* 02110-1301 USA, or see the FSF site: http://www.fsf.org. +*/ + +package org.jboss.test.remoting.transport.http; + +import org.jboss.test.remoting.transport.InvokerClientTest; + +/** + * @author Ron Sigal + * @version $Revision: 1.1 $ + *

+ * Copyright May 12, 2008 + *

+ */ +public class HTTPInvokerSecurityClientTest extends InvokerClientTest +{ + public String getTransport() + { + return "http"; + } +} \ No newline at end of file Added: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/h= ttp/HTTPInvokerSecurityServerTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http= /HTTPInvokerSecurityServerTest.java (rev 0) +++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http= /HTTPInvokerSecurityServerTest.java 2008-05-13 05:04:19 UTC (rev 4181) @@ -0,0 +1,65 @@ +/* +* JBoss, Home of Professional Open Source +* Copyright 2005, JBoss Inc., and individual contributors as indicated +* by the @authors tag. See the copyright.txt in the distribution for a +* full listing of individual contributors. +* +* This is free software; you can redistribute it and/or modify it +* under the terms of the GNU Lesser General Public License as +* published by the Free Software Foundation; either version 2.1 of +* the License, or (at your option) any later version. +* +* This software is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this software; if not, write to the Free +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +* 02110-1301 USA, or see the FSF site: http://www.fsf.org. +*/ + +package org.jboss.test.remoting.transport.http; + +import org.apache.log4j.Level; +import org.jboss.test.remoting.transport.InvokerServerTest; + +/** + * @author Ron Sigal + * @version $Revision: 1.1 $ + *

+ * Copyright May 12, 2008 + *

+ */ +public class HTTPInvokerSecurityServerTest extends InvokerServerTest +{ + public String getTransport() + { + return "http"; + } + + public static void main(String[] args) + { + org.apache.log4j.BasicConfigurator.configure(); + org.apache.log4j.Category.getRoot().setLevel(Level.INFO); + org.apache.log4j.Category.getInstance("org.jboss.remoting.transport.= socket").setLevel(Level.DEBUG); + org.apache.log4j.Category.getInstance("org.jboss.test.remoting").set= Level(Level.DEBUG); + org.apache.log4j.Category.getInstance("org.jgroups").setLevel(Level.= FATAL); + + InvokerServerTest server =3D new HTTPInvokerSecurityServerTest(); + try + { + server.setUp(); + Thread.sleep(300000); + server.tearDown(); + System.out.println("Have torn down test."); + Thread.sleep(30000); + } + catch(Exception e) + { + e.printStackTrace(); + } + } + +} \ No newline at end of file Added: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/h= ttp/HTTPInvokerSecurityTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http= /HTTPInvokerSecurityTestCase.java (rev 0) +++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http= /HTTPInvokerSecurityTestCase.java 2008-05-13 05:04:19 UTC (rev 4181) @@ -0,0 +1,83 @@ +/* +* JBoss, Home of Professional Open Source +* Copyright 2005, JBoss Inc., and individual contributors as indicated +* by the @authors tag. See the copyright.txt in the distribution for a +* full listing of individual contributors. +* +* This is free software; you can redistribute it and/or modify it +* under the terms of the GNU Lesser General Public License as +* published by the Free Software Foundation; either version 2.1 of +* the License, or (at your option) any later version. +* +* This software is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this software; if not, write to the Free +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +* 02110-1301 USA, or see the FSF site: http://www.fsf.org. +*/ + +package org.jboss.test.remoting.transport.http; + +import org.apache.log4j.Level; +import org.jboss.test.remoting.transport.InvokerTestDriver; + +/** + * @author Ron Sigal + * @version $Revision: 1.1 $ + *

+ * Copyright May 12, 2008 + *

+ */ +public class HTTPInvokerSecurityTestCase extends InvokerTestDriver +{ + public void declareTestClasses() + { + addTestClasses(HTTPInvokerSecurityClientTest.class.getName(), + 1, + HTTPInvokerSecurityServerTest.class.getName()); + } + + protected Level getTestLogLevel() + { + return Level.INFO; + } + + /** + * How long to wait for test results to be returned from the client(s).= If goes longer than the + * specified limit, will throw an exception and kill the running test c= ases. Default value is + * RESULTS_TIMEOUT. + * + * @return + */ + protected long getResultsTimeout() + { + return 600000; + } + + /** + * How long for the server test case to wait for tear down message. If= exceeds timeout, + * will throw exception. The default value is TEARDOWN_TIMEOUT. + * + * @return + */ + protected long getTearDownTimeout() + { + return 60000; + } + + /** + * How long to allow each of the test cases to run their tests. If exc= eeds this timeout + * will throw exception and kill tests. The default value is RUN_TEST_= TIMEOUT. + * + * @return + */ + protected long getRunTestTimeout() + { + return 60000; + } + +} \ No newline at end of file --===============2581742294466739402==--