Return-Path: Delivered-To: apmail-incubator-directory-cvs-archive@www.apache.org Received: (qmail 27992 invoked from network); 19 Jan 2004 22:46:03 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Jan 2004 22:46:03 -0000 Received: (qmail 58955 invoked by uid 500); 19 Jan 2004 22:45:49 -0000 Delivered-To: apmail-incubator-directory-cvs-archive@incubator.apache.org Received: (qmail 58894 invoked by uid 500); 19 Jan 2004 22:45:49 -0000 Mailing-List: contact directory-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: directory-dev@incubator.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list directory-cvs@incubator.apache.org Received: (qmail 58858 invoked from network); 19 Jan 2004 22:45:48 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 19 Jan 2004 22:45:48 -0000 Received: (qmail 27840 invoked by uid 65534); 19 Jan 2004 22:46:01 -0000 Date: 19 Jan 2004 22:46:01 -0000 Message-ID: <20040119224601.27838.qmail@minotaur.apache.org> From: jmachols@apache.org To: directory-cvs@incubator.apache.org Subject: svn commit: rev 6230 - incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: jmachols Date: Mon Jan 19 14:46:00 2004 New Revision: 6230 Modified: incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest/LdapTester.java incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest/TestConfiguration.java Log: Added the TestCase xml to the config parser Modified: incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest/LdapTester.java ============================================================================== --- incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest/LdapTester.java (original) +++ incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest/LdapTester.java Mon Jan 19 14:46:00 2004 @@ -82,7 +82,7 @@ * * @author Jeff Machols * @author $Author: jmachols $ - * @version $Revision: 1.4 $ + * @version $Revision: $ */ public class LdapTester { @@ -90,11 +90,11 @@ JScrollPane scrollPane; TestConfiguration m_config = new TestConfiguration() ; - public LdapTester() + public LdapTester( String a_fileName ) { try { - m_config.readConfig( "F/java/xmltest/testconfig.xml" ) ; + m_config.readConfig( a_fileName ) ; } catch ( FileNotFoundException e ) { @@ -211,7 +211,7 @@ * this method should be invoked from the * event-dispatching thread. */ - private static void createAndShowGUI() + private static void createAndShowGUI( String a_fileName ) { //Make sure we have nice window decorations. JFrame.setDefaultLookAndFeelDecorated(true); @@ -221,7 +221,7 @@ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Create and set up the content pane. - LdapTester tester = new LdapTester(); + LdapTester tester = new LdapTester( a_fileName ) ; frame.setJMenuBar(tester.createMenuBar()); frame.setContentPane(tester.createContentPane()); @@ -232,13 +232,21 @@ public static void main(String[] args) { + if ( args.length != 1 ) + { + System.out.println( "Usage: LdapTester config_file_name" ) ; + System.exit( -1 ) ; + } + final String l_fileName = new String (args[0] ) ; + System.out.println ( "Filename is " + l_fileName ) ; javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { - createAndShowGUI(); + createAndShowGUI( l_fileName ); } } ) ; + } } Modified: incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest/TestConfiguration.java ============================================================================== --- incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest/TestConfiguration.java (original) +++ incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest/TestConfiguration.java Mon Jan 19 14:46:00 2004 @@ -72,7 +72,7 @@ * * @author Jeff Machols * @author $Author: jmachols $ - * @version $Revision: 1.4 $ + * @version $Revision: $ */ public class TestConfiguration {