[seam-commits] [forge/core] 5ec36f: Fix the tests that fail on Windows

GitHub noreply at github.com
Mon Apr 9 19:46:35 EDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/forge/core
  Commit: 5ec36f803014c09ea55baf7ac11edf0069f1d417
      https://github.com/forge/core/commit/5ec36f803014c09ea55baf7ac11edf0069f1d417
  Author: Ivan Ivanov <ivan.ivanov at sap.com>
  Date:   2012-04-09 (Mon, 09 Apr 2012)

  Changed paths:
    M parser-java/src/main/java/org/jboss/forge/parser/java/impl/AbstractJavaSource.java
  M parser-java/src/test/java/org/jboss/forge/test/parser/java/JavaClassTest.java
  M scaffold-faces/src/main/resources/scaffold/faces/create.xhtml
  M scaffold-faces/src/main/resources/scaffold/faces/view.xhtml
  M scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/FacesScaffoldTest.java

  Log Message:
  -----------
  Fix the tests that fail on Windows

Details:
1) The toString() method of the AbstractJavaSource class makes sure that the returned document uses the correct End-of-line (EOL) characters
2) The FacesScaffoldTest expects \r\n all over the generated XHTML files. So the templates used for the generation were adapted to use Windows EOLs only. The test was adapted as well to use \r\n consistently in building up the expected content.
3) Remove unused import in JavaClassTest.


  Commit: f812a84335911ef408a82491542cc9308df08d8e
      https://github.com/forge/core/commit/f812a84335911ef408a82491542cc9308df08d8e
  Author: Lincoln Baxter, III <lincolnbaxter at gmail.com>
  Date:   2012-04-09 (Mon, 09 Apr 2012)

  Changed paths:
    M parser-java/src/main/java/org/jboss/forge/parser/java/impl/AbstractJavaSource.java
  M parser-java/src/test/java/org/jboss/forge/test/parser/java/JavaClassTest.java
  M scaffold-faces/src/main/resources/scaffold/faces/create.xhtml
  M scaffold-faces/src/main/resources/scaffold/faces/view.xhtml
  M scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/FacesScaffoldTest.java

  Log Message:
  -----------
  Merge pull request #137 from ivannov/fix-windows-tests

Fix the tests that fail on Windows


Compare: https://github.com/forge/core/compare/dfac04b...f812a84


More information about the seam-commits mailing list