FeaturesPluginsDocs & SupportCommunityPartners

Running JMI TCK with MDR

This document contains instructions on how to run JMI TCK with MDR. Here are the steps you need to follow:
  1. Run ant in jmitck directory.
  2. Create "netbeans" subdirectory of jmitck directory and unzip content of mdr-standalone.zip into it.
  3. Download build.xml and NBMDRGenerator.java and save them to jmitck/MDRExample directory (replace the original NBMDRGenerator.java).
  4. Run ant in MDRExample directory. NBMDRGenerator should be built successfully.
  5. Create mdrtck_run.sh or mdrtck_run.bat scripts containing something equivalent to:
    #!/bin/sh
    
    if [ "$JAVA_HOME" = "" ] ; then
      echo You must set JAVA_HOME to point at your Java Development Kit directory
      exit 1
    fi
    
    java -Xms24m -Xmx96m -cp lib/javatest.jar:lib/sigtest.jar:jmitck.jar:lib/log4j.jar:lib/ant.jar:servers:tests/modelsem:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/tools.jar:netbeans/jmi.jar:netbeans/mof.jar:netbeans/nbmdr.jar:netbeans/jmiutils.jar:netbeans/mdrapi.jar:netbeans/mdr.jar:netbeans/openide-util.jar:tests/modelsem -Djavatest.security.allowPropertiesAccess=true com.sun.javatest.tool.Main -cleanDesktop 
            
  6. Run mdrtck_run.sh/mdrtck_run.bat.
  7. In the GUI for JMI TCK, choose to create a new working directory. Enter a directory name (ideally a directory that does not exist yet).
  8. Now configure the test suite by going to Configure->Configuration Editor and setting the following values in the Configuration Editor:
    • Environment Name: <any name>
    • Description: <any description>
    • Implementation Class: NBMDRGenerator
    • Code Generation Classpath: Add jmitck/MDRExample, all jars from jmitck/netbeans directory, jmitck/lib/ant.jar, jmitck/lib/log4j.jar, $JAVA_HOME/lib/tools.jar
    • Static Build: Yes
    • Build Location: Add servers directory
    • Generator Properties: none
    • JMI API Resource Location: Add jmitck/netbeans/jmi.jar and jmitck/netbeans/mof.jar
    • Specify Tests to Run?: No
    • Specify an Exclude List?: No
    • Time Factor: 1
    • Report Directory: <leave blank or specify a directory for reports>
    • Completed: Press Check Button to Save Configuration
  9. Start the tests.
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Open ESB - The Open Enterprise Service Bus Powered by