You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by jm...@apache.org on 2004/01/19 23:46:01 UTC
svn commit: rev 6230 - incubator/directory/ldap/trunk/clients/src/java/org/apache/ldap/clients/ldaptest
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 <a href="mailto:jmachols@apache.org">Jeff Machols</a>
* @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 <a href="mailto:jmachols@apache.org">Jeff Machols</a>
* @author $Author: jmachols $
- * @version $Revision: 1.4 $
+ * @version $Revision: $
*/
public class TestConfiguration
{