Help

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

This document describes plans for testing seam-gen.

Test cases for the seam script

Verify the following platforms:

  • Linux
  • Mac (don't assume gnu utils are installed)
  • Windows
  • Windows/cgywin

Windows

  • Put Seam distribution in PATH, run seam from c:\ (tests WORKING_DIR)
  • Put Seam distribution in PATH, run seam from c:\Program Files (tests WORKING_DIR containing space)
  • Test when path to Seam distribution contains a space (tests SEAM_HOME containing space)
  • Test when JAVA_HOME contains a space

Windows/cygwin

  • Define JAVA_HOME with a Unix path (i.e., /cygdrive/c/Program Files/Java/jdk1.6)
  • Define JAVA_HOME with a Windows path (i.e., c:\Program Files\Java\jdk1.6)
  • Define SEAM_HOME with a Unix path (i.e., /cygdrive/c/jboss-seam)
  • Define SEAM_HOME with a Windows path (i.e., c:\jboss-seam)

Linux

  • Pass argument -Dseam-gen.properties=my project.properties (tests quoted argument with space)
  • Pass argument -Dseam-gen.properties=my\ project.properties (tests argument with escaped space)

Testing the generate command

The schema should be sufficiently complex such that it touches most regions of the FreeMarker templates. Here are some things that need to be added:

  • A grandparent relationship (A -> B -> C)
1 comment:
 
10. Nov 2009, 22:07 America/New_York | Link

I think seam-gen should be tested with this database model.

 

Please don't forget to rate!

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. - Antoine de Saint Exupéry

Please visit my blog