[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test JBossTestServices.java
User: starksm Date: 02/02/25 11:49:52 Modified:src/main/org/jboss/test JBossTestServices.java Log: Do not print out the beancount, iterationcount and threadcount values in their accessors as if these are as loop bounds the values are printed N times. Revision ChangesPath 1.11 +9 -13 jbosstest/src/main/org/jboss/test/JBossTestServices.java Index: JBossTestServices.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/JBossTestServices.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- JBossTestServices.java29 Jan 2002 21:59:58 - 1.10 +++ JBossTestServices.java25 Feb 2002 19:49:52 - 1.11 @@ -46,7 +46,7 @@ * * @authora href=mailto:[EMAIL PROTECTED];David Jencks/a * @authora href=mailto:[EMAIL PROTECTED];Christoph G. Jung/a - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ */ public class JBossTestServices { @@ -93,6 +93,9 @@ public void setUp() throws Exception { log.debug(JBossTestServices.setUp()); + log.info(jbosstest.beancount: + System.getProperty(jbosstest.beancount)); + log.info(jbosstest.iterationcount: + System.getProperty(jbosstest.iterationcount)); + log.info(jbosstest.threadcount: + System.getProperty(jbosstest.threadcount)); } /** @@ -262,10 +265,8 @@ String deployName = getDeployURL(name); invoke(getDeployerName(), deploy, - new Object[] - {deployName}, - new String[] - {java.lang.String}); + new Object[] {deployName}, + new String[] {java.lang.String}); setDeployed(deployName); } /** @@ -292,28 +293,23 @@ void flushAuthCache() throws Exception { ObjectName jaasMgr = new ObjectName(jboss.security:name=JaasSecurityManager); - Object[] params = - {other}; - String[] signature = - {java.lang.String}; + Object[] params = {other}; + String[] signature = {java.lang.String}; invoke(jaasMgr, flushAuthenticationCache, params, signature); } int getThreadCount() { - log.info(jbosstest.threadcount: + System.getProperty(jbosstest.threadcount)); return Integer.getInteger(jbosstest.threadcount, DEFAULT_THREADCOUNT).intValue(); } int getIterationCount() { - log.info(jbosstest.iterationcount: + System.getProperty(jbosstest.iterationcount)); return Integer.getInteger(jbosstest.iterationcount, DEFAULT_ITERATIONCOUNT).intValue(); } - + int getBeanCount() { - log.info(jbosstest.beancount: + System.getProperty(jbosstest.beancount)); return Integer.getInteger(jbosstest.beancount, DEFAULT_BEANCOUNT).intValue(); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test JBossTestServices.java
User: user57 Date: 02/01/02 20:01:01 Modified:src/main/org/jboss/test JBossTestServices.java Log: o migrated all components to a new JMX domain name model. jboss.system is now where to core/spine components live. moved all components that were in JBOSS-SYSTEM that did not move into a jboss.* domain into jboss (where the server is now registered). The point was to limit the members of jboss.system to core bits only. o Created org.jboss.system.Server, which does the work of initialization that org.jboss.Main used to do. Main now only parses the command line, sets up basic legecy properties and creates a Server instance. o Moved functionality of Shutdown (component not cl tool) into Server ( which is bound as jboss.system:service=Server) o Moved more Runtime access from Info into Server. Exposed memory info as attributes. o Logging a WARN everywhere that uses System.getProperty(jboss.system.home) as that should go away soon/eventually. o Initialized the invokerMap in the harmi impl to avoid NPE o Made getopt.jar a member of the lib/* dir instead of adding it to the run.jar and shutdown.jars each time. o Minor cosmetic changes along the way. Revision ChangesPath 1.9 +5 -4 jbosstest/src/main/org/jboss/test/JBossTestServices.java Index: JBossTestServices.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/JBossTestServices.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- JBossTestServices.java2001/10/17 19:35:58 1.8 +++ JBossTestServices.java2002/01/03 04:01:01 1.9 @@ -4,6 +4,7 @@ * Distributable under LGPL license. * See terms of license at gnu.org. */ + package org.jboss.test; import java.io.File; @@ -45,14 +46,14 @@ * * @authora href=mailto:[EMAIL PROTECTED];David Jencks/a * @authora href=mailto:[EMAIL PROTECTED];Christoph G. Jung/a - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ */ public class JBossTestServices { // Constants - - private final static String serviceDeployerName = JBOSS-SYSTEM:service=ServiceDeployer; - private final static String j2eeDeployerName = J2EE:service=J2eeDeployer; + private final static String serviceDeployerName = jboss.system:service=ServiceDeployer; + private final static String j2eeDeployerName = jboss.j2ee:service=J2eeDeployer; private final static int DEFAULT_THREADCOUNT = 10; private final static int DEFAULT_ITERATIONCOUNT = 1000; @@ -338,7 +339,7 @@ void flushAuthCache() throws Exception { - ObjectName jaasMgr = new ObjectName(Security:name=JaasSecurityManager); + ObjectName jaasMgr = new ObjectName(jboss.security:name=JaasSecurityManager); Object[] params = {other}; String[] signature = ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test JBossTestServices.java
User: starksm Date: 01/09/18 01:23:25 Modified:src/main/org/jboss/test JBossTestServices.java Log: Use single deploy/undeploy of the security-spec.jar Revision ChangesPath 1.2 +8 -5 jbosstest/src/main/org/jboss/test/JBossTestServices.java Index: JBossTestServices.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/JBossTestServices.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- JBossTestServices.java2001/09/17 17:33:52 1.1 +++ JBossTestServices.java2001/09/18 08:23:25 1.2 @@ -41,7 +41,7 @@ * ../lib). * * @authora href=[EMAIL PROTECTED]David Jencks/a - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ */ public class JBossTestServices { @@ -68,6 +68,7 @@ public JBossTestServices(String className) { log = Category.getInstance(className); + log.debug(JBossTestServices(), className=+className); } // Public @@ -78,7 +79,7 @@ * * @exception Exception Description of Exception */ - void setUp() throws Exception + public void setUp() throws Exception { String serverName = System.getProperty(jbosstest.server.name); if (serverName == null) @@ -87,6 +88,7 @@ } initialContext = new InitialContext(); server = (RMIConnector)getInitialContext().lookup(jmx: + serverName + :rmi); + log.debug(JBossTestServices.setUp()); } /** @@ -94,9 +96,10 @@ * * @exception Exception Description of Exception */ - void tearDown() throws Exception + public void tearDown() throws Exception { server = null; + log.debug(JBossTestServices.tearDown()); } @@ -258,7 +261,7 @@ * @param name filename/url of package to deploy. * @exception Exception Description of Exception */ - void deployJ2ee(String name) throws Exception + public void deployJ2ee(String name) throws Exception { String deployName = getDeployURL(name); invoke(getJ2eeDeployerName(), @@ -275,7 +278,7 @@ * @param name filename/url of package to undeploy. * @exception Exception Description of Exception */ - void undeployJ2ee(String name) throws Exception + public void undeployJ2ee(String name) throws Exception { String deployName = getDeployURL(name); invoke(getJ2eeDeployerName(), ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test JBossTestServices.java
Is there some reason you changed all the methods to public here instead of using the JBossTestSetup for the setups in all the security tests? david jencks On 2001.09.18 04:23:25 -0400 Scott M Stark wrote: User: starksm Date: 01/09/18 01:23:25 Modified:src/main/org/jboss/test JBossTestServices.java Log: Use single deploy/undeploy of the security-spec.jar Revision ChangesPath 1.2 +8 -5 jbosstest/src/main/org/jboss/test/JBossTestServices.java Index: JBossTestServices.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/JBossTestServices.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- JBossTestServices.java 2001/09/17 17:33:52 1.1 +++ JBossTestServices.java 2001/09/18 08:23:25 1.2 @@ -41,7 +41,7 @@ * ../lib). * * @authora href=[EMAIL PROTECTED]David Jencks/a - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ */ public class JBossTestServices { @@ -68,6 +68,7 @@ public JBossTestServices(String className) { log = Category.getInstance(className); + log.debug(JBossTestServices(), className=+className); } // Public @@ -78,7 +79,7 @@ * * @exception Exception Description of Exception */ - void setUp() throws Exception + public void setUp() throws Exception { String serverName = System.getProperty(jbosstest.server.name); if (serverName == null) @@ -87,6 +88,7 @@ } initialContext = new InitialContext(); server = (RMIConnector)getInitialContext().lookup(jmx: + serverName + :rmi); + log.debug(JBossTestServices.setUp()); } /** @@ -94,9 +96,10 @@ * * @exception Exception Description of Exception */ - void tearDown() throws Exception + public void tearDown() throws Exception { server = null; + log.debug(JBossTestServices.tearDown()); } @@ -258,7 +261,7 @@ * @param name filename/url of package to deploy. * @exception Exception Description of Exception */ - void deployJ2ee(String name) throws Exception + public void deployJ2ee(String name) throws Exception { String deployName = getDeployURL(name); invoke(getJ2eeDeployerName(), @@ -275,7 +278,7 @@ * @param name filename/url of package to undeploy. * @exception Exception Description of Exception */ - void undeployJ2ee(String name) throws Exception + public void undeployJ2ee(String name) throws Exception { String deployName = getDeployURL(name); invoke(getJ2eeDeployerName(), ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test JBossTestServices.java
Yes, I did not see JBossTestSetup as none of the TestSetup code had been converted to use it. - Original Message - From: David Jencks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 5:22 AM Subject: Re: [JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test JBossTestServices.java Is there some reason you changed all the methods to public here instead of using the JBossTestSetup for the setups in all the security tests? david jencks On 2001.09.18 04:23:25 -0400 Scott M Stark wrote: User: starksm Date: 01/09/18 01:23:25 Modified:src/main/org/jboss/test JBossTestServices.java Log: Use single deploy/undeploy of the security-spec.jar Revision ChangesPath 1.2 +8 -5 jbosstest/src/main/org/jboss/test/JBossTestServices.java Index: JBossTestServices.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/JBossTestServices.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- JBossTestServices.java 2001/09/17 17:33:52 1.1 +++ JBossTestServices.java 2001/09/18 08:23:25 1.2 @@ -41,7 +41,7 @@ * ../lib). * * @authora href=[EMAIL PROTECTED]David Jencks/a - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ */ public class JBossTestServices { @@ -68,6 +68,7 @@ public JBossTestServices(String className) { log = Category.getInstance(className); + log.debug(JBossTestServices(), className=+className); } // Public @@ -78,7 +79,7 @@ * * @exception Exception Description of Exception */ - void setUp() throws Exception + public void setUp() throws Exception { String serverName = System.getProperty(jbosstest.server.name); if (serverName == null) @@ -87,6 +88,7 @@ } initialContext = new InitialContext(); server = (RMIConnector)getInitialContext().lookup(jmx: + serverName + :rmi); + log.debug(JBossTestServices.setUp()); } /** @@ -94,9 +96,10 @@ * * @exception Exception Description of Exception */ - void tearDown() throws Exception + public void tearDown() throws Exception { server = null; + log.debug(JBossTestServices.tearDown()); } @@ -258,7 +261,7 @@ * @param name filename/url of package to deploy. * @exception Exception Description of Exception */ - void deployJ2ee(String name) throws Exception + public void deployJ2ee(String name) throws Exception { String deployName = getDeployURL(name); invoke(getJ2eeDeployerName(), @@ -275,7 +278,7 @@ * @param name filename/url of package to undeploy. * @exception Exception Description of Exception */ - void undeployJ2ee(String name) throws Exception + public void undeployJ2ee(String name) throws Exception { String deployName = getDeployURL(name); invoke(getJ2eeDeployerName(), ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test JBossTestServices.java JBossTestSetup.java JBossTestCase.java
User: d_jencks Date: 01/09/17 10:33:53 Modified:src/main/org/jboss/test JBossTestCase.java Added: src/main/org/jboss/test JBossTestServices.java JBossTestSetup.java Log: Finished converting to JBossTestCase for deploy and logging. Security tests still do not work due to deploy problems Revision ChangesPath 1.3 +26 -119 jbosstest/src/main/org/jboss/test/JBossTestCase.java Index: JBossTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/JBossTestCase.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- JBossTestCase.java2001/09/15 00:12:16 1.2 +++ JBossTestCase.java2001/09/17 17:33:52 1.3 @@ -42,22 +42,14 @@ * ../lib). * * @authora href=[EMAIL PROTECTED]David Jencks/a - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ public class JBossTestCase extends TestCase { - // Constants - - private final static String serviceDeployerName = JBOSS-SYSTEM:service=ServiceDeployer; - private final static String j2eeDeployerName = J2EE:service=J2eeDeployer; - - // Attributes - private RMIConnector server; - private Category log; - private InitialContext initialContext; + private JBossTestServices delegate; - private HashSet deployed = new HashSet(); // Static @@ -70,50 +62,45 @@ public JBossTestCase(String name) { super(name); + delegate = new JBossTestServices(getClass().getName()); } // Public /** -* The JUnit setup method +* This just checks the server is there... so you should get at least one +* success! * * @exception Exception Description of Exception */ - protected void setUp() throws Exception + public void testServerFound() throws Exception { - log = Category.getInstance(getClass().getName()); - String serverName = System.getProperty(jbosstest.server.name); - if (serverName == null) - { - serverName = InetAddress.getLocalHost().getHostName(); - } - initialContext = new InitialContext(); - server = (RMIConnector)getInitialContext().lookup(jmx: + serverName + :rmi); + assertTrue(Server was not found, getServer() != null); } /** -* The teardown method for JUnit +* The JUnit setup method * * @exception Exception Description of Exception */ - protected void tearDown() throws Exception + protected void setUp() throws Exception { - server = null; + delegate.setUp(); } /** -* This just checks the server is there... so you should get at least one -* success! +* The teardown method for JUnit * * @exception Exception Description of Exception */ - public void testServerFound() throws Exception + protected void tearDown() throws Exception { - assertTrue(Server was not found, server != null); + delegate.tearDown(); } + //protected- /** @@ -123,7 +110,7 @@ */ protected InitialContext getInitialContext() { - return initialContext; + return delegate.getInitialContext(); } /** @@ -133,7 +120,7 @@ */ protected RMIConnector getServer() { - return server; + return delegate.getServer(); } /** @@ -143,7 +130,7 @@ */ protected Category getLog() { - return log; + return delegate.getLog(); } /** @@ -154,7 +141,7 @@ */ protected ObjectName getServiceDeployerName() throws MalformedObjectNameException { - return new ObjectName(serviceDeployerName); + return delegate.getServiceDeployerName(); } /** @@ -165,7 +152,7 @@ */ protected ObjectName getJ2eeDeployerName() throws MalformedObjectNameException { - return new ObjectName(j2eeDeployerName); + return delegate.getJ2eeDeployerName(); } @@ -182,30 +169,7 @@ */ protected String getDeployURL(final String filename) throws MalformedURLException { - //First see if it is already a complete url. - try - { - return new URL(filename).toString(); - } - catch (MalformedURLException mue) - { - } - //OK, lets see if we can figure out what it might be. - String deployDir = System.getProperty(jbosstest.deploy.dir); - if (deployDir