[seam/persistence] 15de90: SEAMPERSIST-44 remove useless @Remove annotation
by noreply@github.com
Branch: refs/heads/master
Home: https://github.com/seam/persistence
Commit: 15de90bd5cd993190c9e43a1da32306d14b9d8ec
https://github.com/seam/persistence/commit/15de90bd5cd993190c9e43a1da3230...
Author: Stuart Douglas <stuart.w.douglas(a)gmail.com>
Date: 2011-07-10 (Sun, 10 Jul 2011)
Changed paths:
M impl/src/main/java/org/jboss/seam/transaction/TransactionManagerSynchronizations.java
Log Message:
-----------
SEAMPERSIST-44 remove useless @Remove annotation
Commit: 9c9ebd9583ed4c38b9ac70fec267bbd52701381c
https://github.com/seam/persistence/commit/9c9ebd9583ed4c38b9ac70fec267bb...
Author: Stuart Douglas <stuart.w.douglas(a)gmail.com>
Date: 2011-07-10 (Sun, 10 Jul 2011)
Changed paths:
M impl/src/main/java/org/jboss/seam/persistence/DefaultPersistenceProvider.java
M impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextExtension.java
M impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java
M impl/src/main/java/org/jboss/seam/persistence/PersistenceContextProxyHandler.java
M impl/src/main/java/org/jboss/seam/persistence/PersistenceContextsImpl.java
M impl/src/main/java/org/jboss/seam/persistence/hibernate/HibernateManagedSessionProxyHandler.java
M impl/src/main/java/org/jboss/seam/persistence/util/BeanManagerUtils.java
M impl/src/main/java/org/jboss/seam/transaction/EntityTransaction.java
M impl/src/main/java/org/jboss/seam/transaction/TransactionInterceptor.java
Log Message:
-----------
Remove Instance<> calls to prevent memory leaks
Commit: 35b9f0fd998121f7168834d50928c96aeb1ebe76
https://github.com/seam/persistence/commit/35b9f0fd998121f7168834d50928c9...
Author: Stuart Douglas <stuart.w.douglas(a)gmail.com>
Date: 2011-07-10 (Sun, 10 Jul 2011)
Changed paths:
M impl/src/main/java/org/jboss/seam/transaction/EntityTransaction.java
Log Message:
-----------
Make EntityTransaction application scoped so it can be used in se environemnts
Compare: https://github.com/seam/persistence/compare/18d7b1d...35b9f0f
12 years, 10 months
[seam/persistence] 15de90: SEAMPERSIST-44 remove useless @Remove annotation
by noreply@github.com
Branch: refs/heads/develop
Home: https://github.com/seam/persistence
Commit: 15de90bd5cd993190c9e43a1da32306d14b9d8ec
https://github.com/seam/persistence/commit/15de90bd5cd993190c9e43a1da3230...
Author: Stuart Douglas <stuart.w.douglas(a)gmail.com>
Date: 2011-07-10 (Sun, 10 Jul 2011)
Changed paths:
M impl/src/main/java/org/jboss/seam/transaction/TransactionManagerSynchronizations.java
Log Message:
-----------
SEAMPERSIST-44 remove useless @Remove annotation
Commit: 9c9ebd9583ed4c38b9ac70fec267bbd52701381c
https://github.com/seam/persistence/commit/9c9ebd9583ed4c38b9ac70fec267bb...
Author: Stuart Douglas <stuart.w.douglas(a)gmail.com>
Date: 2011-07-10 (Sun, 10 Jul 2011)
Changed paths:
M impl/src/main/java/org/jboss/seam/persistence/DefaultPersistenceProvider.java
M impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextExtension.java
M impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java
M impl/src/main/java/org/jboss/seam/persistence/PersistenceContextProxyHandler.java
M impl/src/main/java/org/jboss/seam/persistence/PersistenceContextsImpl.java
M impl/src/main/java/org/jboss/seam/persistence/hibernate/HibernateManagedSessionProxyHandler.java
M impl/src/main/java/org/jboss/seam/persistence/util/BeanManagerUtils.java
M impl/src/main/java/org/jboss/seam/transaction/EntityTransaction.java
M impl/src/main/java/org/jboss/seam/transaction/TransactionInterceptor.java
Log Message:
-----------
Remove Instance<> calls to prevent memory leaks
Compare: https://github.com/seam/persistence/compare/18d7b1d...9c9ebd9
12 years, 10 months
[seam/faces] a6aa06: project with arquillian
by noreply@github.com
Branch: refs/heads/feature/jfsunit_arqullian
Home: https://github.com/seam/faces
Commit: a6aa06d099b0414d0aeccb5412b7caab0b25f1ef
https://github.com/seam/faces/commit/a6aa06d099b0414d0aeccb5412b7caab0b25...
Author: joserodolfofreitas <joserodolfo.freitas(a)gawab.com>
Date: 2011-07-08 (Fri, 08 Jul 2011)
Changed paths:
A tests/pom.xml
A tests/src/test/java/org/jboss/seam/faces/component/UIInputContainerTest.java
A tests/src/test/resources/arquillian.xml
Log Message:
-----------
project with arquillian
Commit: fc7022e86f14e2d5ab488bbffac473862c0ef9a6
https://github.com/seam/faces/commit/fc7022e86f14e2d5ab488bbffac473862c0e...
Author: joserodolfofreitas <joserodolfo.freitas(a)gawab.com>
Date: 2011-07-08 (Fri, 08 Jul 2011)
Changed paths:
A tests/.gitignore
M tests/pom.xml
A tests/src/main/webapp/NestedNamingContainers.xhtml
A tests/src/main/webapp/WEB-INF/faces-config.xml
A tests/src/main/webapp/WEB-INF/web.xml
A tests/src/main/webapp/error.xhtml
A tests/src/main/webapp/finalgreeting.xhtml
A tests/src/main/webapp/form-secured-page.xhtml
A tests/src/main/webapp/index.html
A tests/src/main/webapp/index.xhtml
A tests/src/main/webapp/indexWithExtraComponents.xhtml
A tests/src/main/webapp/login.xhtml
A tests/src/main/webapp/marathons.xhtml
A tests/src/main/webapp/marathons_datatable.xhtml
A tests/src/main/webapp/secured-page.xhtml
M tests/src/test/java/org/jboss/seam/faces/component/UIInputContainerTest.java
A tests/src/test/java/org/jboss/seam/faces/utils/Deployments.java
Log Message:
-----------
Added jsfunit
Commit: dc777b410745e0c88dd85ffce31cdeb1d81ee0b1
https://github.com/seam/faces/commit/dc777b410745e0c88dd85ffce31cdeb1d81e...
Author: joserodolfofreitas <joserodolfo.freitas(a)gawab.com>
Date: 2011-07-08 (Fri, 08 Jul 2011)
Changed paths:
M tests/pom.xml
R tests/src/main/webapp/NestedNamingContainers.xhtml
R tests/src/main/webapp/WEB-INF/faces-config.xml
R tests/src/main/webapp/WEB-INF/web.xml
R tests/src/main/webapp/error.xhtml
R tests/src/main/webapp/finalgreeting.xhtml
R tests/src/main/webapp/form-secured-page.xhtml
R tests/src/main/webapp/index.html
R tests/src/main/webapp/index.xhtml
R tests/src/main/webapp/indexWithExtraComponents.xhtml
R tests/src/main/webapp/login.xhtml
R tests/src/main/webapp/marathons.xhtml
R tests/src/main/webapp/marathons_datatable.xhtml
R tests/src/main/webapp/secured-page.xhtml
M tests/src/test/java/org/jboss/seam/faces/component/UIInputContainerTest.java
A tests/src/test/java/org/jboss/seam/faces/component/UIInputContainerTestBean.java
M tests/src/test/java/org/jboss/seam/faces/utils/Deployments.java
M tests/src/test/resources/arquillian.xml
A tests/src/test/resources/jetty/cdi-jetty-env.xml
A tests/src/test/resources/jetty/web.xml
A tests/src/test/resources/tomcat/cdi-context.xml
A tests/src/test/resources/tomcat/web.xml
A tests/src/test/webapp/NestedNamingContainers.xhtml
A tests/src/test/webapp/WEB-INF/faces-config.xml
A tests/src/test/webapp/WEB-INF/web.xml
A tests/src/test/webapp/index.html
A tests/src/test/webapp/index.xhtml
A tests/src/test/webapp/inputcontainerform.xhtml
Log Message:
-----------
Some Tests for UIInputContainer
Commit: 6fb2dc800341571b9b728945f036ae785ddab5c9
https://github.com/seam/faces/commit/6fb2dc800341571b9b728945f036ae785dda...
Author: joserodolfofreitas <joserodolfo.freitas(a)gawab.com>
Date: 2011-07-08 (Fri, 08 Jul 2011)
Changed paths:
M tests/pom.xml
M tests/src/test/java/org/jboss/seam/faces/component/UIInputContainerTest.java
M tests/src/test/java/org/jboss/seam/faces/utils/Deployments.java
M tests/src/test/resources/arquillian.xml
Log Message:
-----------
Commit some refactoring and version changing.
Commit: a6741acf481198a71c23d12ddd14b5aa4a85009c
https://github.com/seam/faces/commit/a6741acf481198a71c23d12ddd14b5aa4a85...
Author: joserodolfofreitas <joserodolfo.freitas(a)gawab.com>
Date: 2011-07-08 (Fri, 08 Jul 2011)
Changed paths:
M tests/pom.xml
M tests/src/test/java/org/jboss/seam/faces/component/UIInputContainerTest.java
M tests/src/test/java/org/jboss/seam/faces/utils/Deployments.java
M tests/src/test/resources/arquillian.xml
Log Message:
-----------
downgrade it to arquillian alpha5 and shrinkwrap alpha-12
Compare: https://github.com/seam/faces/compare/a6aa06d^...a6741ac
12 years, 10 months
Seam SVN: r14124 - in branches/community/Seam_2_3: distribution/src/main/assembly and 5 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-07-08 13:03:46 -0400 (Fri, 08 Jul 2011)
New Revision: 14124
Modified:
branches/community/Seam_2_3/distribution/pom.xml
branches/community/Seam_2_3/distribution/src/main/assembly/assembly.xml
branches/community/Seam_2_3/extras/readme.txt
branches/community/Seam_2_3/jboss-seam-gen/src/main/assembly/assembly.xml
branches/community/Seam_2_3/jboss-seam-parent/pom.xml
branches/community/Seam_2_3/jboss-seam-ui/pom.xml
branches/community/Seam_2_3/jboss-seam/pom.xml
Log:
making distribution from sources, binaries and documentation
Modified: branches/community/Seam_2_3/distribution/pom.xml
===================================================================
--- branches/community/Seam_2_3/distribution/pom.xml 2011-07-08 17:03:04 UTC (rev 14123)
+++ branches/community/Seam_2_3/distribution/pom.xml 2011-07-08 17:03:46 UTC (rev 14124)
@@ -13,10 +13,28 @@
<name>Distribution</name>
<packaging>pom</packaging>
- <build>
- <plugins>
-
- </plugins>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>distribution</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/assembly.xml</descriptor>
+ </descriptors>
+ <appendAssemblyId>false</appendAssemblyId>
+ </configuration>
+
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
<dependencies>
@@ -28,6 +46,14 @@
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <type>ejb</type>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-debug</artifactId>
</dependency>
<dependency>
@@ -79,6 +105,246 @@
<groupId>org.jboss.seam</groupId>
<artifactId>seam-reference-guide</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <classifier>project</classifier>
+ <version>${project.version}</version>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-debug</artifactId>
+ <classifier>project</classifier>
+ <version>${project.version}</version>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-excel</artifactId>
+ <classifier>project</classifier>
+ <version>${project.version}</version>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-flex</artifactId>
+ <classifier>project</classifier>
+ <version>${project.version}</version>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ioc</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-jul</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-mail</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-pdf</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-remoting</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-resteasy</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-rss</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ui</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-wicket</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>functional-tests</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>seam-integration-tests</artifactId>
+ <version>${project.version}</version>
+ <classifier>project</classifier>
+ <type>zip</type>
+ </dependency>
+
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-debug</artifactId>
+ <classifier>sources</classifier>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-excel</artifactId>
+ <classifier>sources</classifier>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-flex</artifactId>
+ <classifier>sources</classifier>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ioc</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-jul</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-mail</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-pdf</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-remoting</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-resteasy</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-rss</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ui</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-wicket</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ui</artifactId>
+ <version>${project.version}</version>
+ <classifier>javadoc</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <version>${project.version}</version>
+ <type>ejb</type>
+ <classifier>javadoc</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-gen</artifactId>
+ <version>${project.version}</version>
+ <classifier>distribution</classifier>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-gen</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-embedded-bootstrap</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>examples</artifactId>
+ <classifier>project</classifier>
+ <version>${project.version}</version>
+ <type>zip</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam.embedded</groupId>
+ <artifactId>jboss-embedded-all</artifactId>
+ <version>${version.jbossembedded}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam.embedded</groupId>
+ <artifactId>hibernate-all</artifactId>
+ <version>${version.jbossembedded}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam.embedded</groupId>
+ <artifactId>thirdparty-all</artifactId>
+ <version>${version.jbossembedded}</version>
+ </dependency>
+
</dependencies>
</project>
Modified: branches/community/Seam_2_3/distribution/src/main/assembly/assembly.xml
===================================================================
--- branches/community/Seam_2_3/distribution/src/main/assembly/assembly.xml 2011-07-08 17:03:04 UTC (rev 14123)
+++ branches/community/Seam_2_3/distribution/src/main/assembly/assembly.xml 2011-07-08 17:03:46 UTC (rev 14124)
@@ -17,92 +17,137 @@
<outputDirectory>.</outputDirectory>
<includes>
<include>*.txt</include>
-<!-- <include>lgpl.txt</include>
- <include>copyright.txt</include>
- <include>changelog.txt</include> -->
+ <include>build.properties</include>
+ <include>eclipse-code-formatter-profile.xml</include>
</includes>
</fileSet>
- </fileSets>
-
- <moduleSets>
- <moduleSet>
-
- <!-- Enable access to all projects in the current multimodule build! -->
- <useAllReactorProjects>true</useAllReactorProjects>
-
- <!-- Now, select which projects to include in this module-set. -->
- <includes>
- <include>org.jboss.seam.*:*</include>
- </includes>
- <binaries>
- <outputDirectory>lib</outputDirectory>
- <unpack>false</unpack>
- </binaries>
- <sources>
- <outputDirectory>lib/sources</outputDirectory>
- </sources>
- </moduleSet>
- </moduleSets>
-
+ <fileSet>
+ <directory>../extras</directory>
+ <outputDirectory>extras</outputDirectory>
+ <includes>
+ <include>mail-ra.rar</include>
+ <include>jsUnit/**</include>
+ <include>readme.txt</include>
+ </includes>
+ </fileSet>
+ </fileSets>
<dependencySets>
- <!-- Add necessary binaries -->
+
+ <!-- some extra things Embedded bootstrap, extras etc. -->
+ <dependencySet>
+ <outputDirectory>.</outputDirectory>
+ <useProjectArtifact>false</useProjectArtifact>
+ <includes>
+ <include>org.jboss.seam:jboss-embedded-bootstrap</include>
+ <include>org.jboss.seam:examples:zip:project</include>
+ </includes>
+ <unpack>true</unpack>
+ <unpackOptions>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ </excludes>
+ </unpackOptions>
+ <outputFileNameMapping>${artifact.artifactId}</outputFileNameMapping>
+ </dependencySet>
+
+ <!-- Add necessary sources jars -->
<dependencySet>
- <outputDirectory>artifacts</outputDirectory>
+ <outputDirectory>lib/sources</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<includes>
- <include>org.jboss.seam.*</include>
+ <include>*:sources</include>
</includes>
- <outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ <excludes>
+ <exclude>org.jboss.seam:jboss-seam-gen:*:sources</exclude>
+ </excludes>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
- <!-- Add necessary javadoc jars -->
+
+ <!-- Add necessary dependencies -->
<dependencySet>
- <outputDirectory>doc/javadoc</outputDirectory>
+ <outputDirectory>lib</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
+ <useTransitiveDependencies>true</useTransitiveDependencies>
+ <excludes>
+ <exclude>org.jboss.seam:jboss-seam-gen:*:*</exclude>
+ <exclude>org.jboss.seam:seam-reference-guide:*:*</exclude>
+ <exclude>*:sources</exclude>
+ <exclude>*:javadoc</exclude>
+ <exclude>org.hibernate:hibernate-tools:jar</exclude>
+ <exclude>freemarker:freemarker:jar</exclude>
+ <exclude>org.eclipse.core:runtime:jar</exclude>
+ <exclude>org.eclipse.equinox:common:jar</exclude>
+ <exclude>org.eclipse:text:jar</exclude>
+ <exclude>org.richfaces.samples:darkX:jar</exclude>
+ <exclude>org.richfaces.samples:laguna:jar</exclude>
+ <exclude>org.richfaces.samples:glassX:jar</exclude>
+ <exclude>org.apache.ant:ant:jar</exclude>
+ <exclude>org.jboss.seam:examples:*:*</exclude>
+ <exclude>org.jboss.seam:functional-tests:*:*</exclude>
+ </excludes>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
+ <!-- <outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping> -->
+ </dependencySet>
+
+ <!-- Seam gen -->
+ <dependencySet>
+ <outputDirectory>lib/gen</outputDirectory>
+ <useProjectArtifact>false</useProjectArtifact>
<includes>
- <include>org.jboss.seam.*:*</include>
+ <include>org.jboss.seam:jboss-seam-gen:jar</include>
+ <include>org.hibernate:hibernate-tools:jar</include>
+ <include>freemarker:freemarker:jar</include>
+ <include>org.eclipse.core:runtime:jar</include>
+ <include>org.eclipse.equinox:common:jar</include>
+ <include>org.eclipse:text:jar</include>
+ <include>org.richfaces.samples:darkX:jar</include>
+ <include>org.richfaces.samples:laguna:jar</include>
+ <include>org.richfaces.samples:glassX:jar</include>
+ <include>org.apache.ant:ant:jar</include>
</includes>
- <outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ <excludes>
+ <exclude>org.jboss.seam:jboss-seam-gen:*:sources</exclude>
+ </excludes>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
- <!-- Add necessary sources jars -->
+
<dependencySet>
- <outputDirectory>lib/sources</outputDirectory>
+ <outputDirectory>lib/gen/src</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<includes>
- <include>org.jboss.seam.*:*:*:sources</include>
+ <include>org.jboss.seam:jboss-seam-gen:*:sources</include>
</includes>
- <outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
- <!-- Add necessary dependencies -->
+
<dependencySet>
- <outputDirectory>lib</outputDirectory>
+ <outputDirectory>./seam-gen</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
- <useTransitiveDependencies>true</useTransitiveDependencies>
- <excludes>
- <exclude>org.jboss.seam.*</exclude>
- <exclude>org.jboss.seam:*</exclude>
- </excludes>
- <outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ <unpack>true</unpack>
+ <includes>
+ <include>org.jboss.seam:jboss-seam-gen:zip:distribution</include>
+ </includes>
</dependencySet>
- <!-- Pull in the example projects
+
<dependencySet>
- <outputDirectory>examples</outputDirectory>
- <unpack>true</unpack>
+ <outputDirectory>lib/test</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<includes>
- <include>org.jboss.seam.faces:seam-faces-examples-short-ly</include>
- <include>org.jboss.seam.xml:seam-xml-examples-princess-rescue</include>
- <include>org.jboss.seam.remoting:seam-remoting-model-example</include>
- <include>org.jboss.seam.remoting:seam-remoting-helloworld-example</include>
+ <include>org.jboss.seam.embedded:hibernate-all:*</include>
+ <include>org.jboss.seam.embedded:jboss-embedded-all:*</include>
+ <include>org.jboss.seam.embedded:thirdparty-all:*</include>
</includes>
- </dependencySet>-->
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
+ </dependencySet>
+
<!-- Pull in docbook artifacts -->
<dependencySet>
<outputDirectory>doc/reference/</outputDirectory>
<unpack>true</unpack>
<useProjectArtifact>false</useProjectArtifact>
<includes>
- <include>org.jboss.seam.reference-guide:seam-reference-guide</include>
+ <include>org.jboss.seam:seam-reference-guide</include>
</includes>
<unpackOptions>
<excludes>
@@ -111,6 +156,51 @@
</unpackOptions>
<outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
+
+ <!-- Add necessary javadoc jars -->
+ <dependencySet>
+ <outputDirectory>doc/api</outputDirectory>
+ <useProjectArtifact>false</useProjectArtifact>
+ <unpack>true</unpack>
+ <includes>
+ <include>org.jboss.seam:jboss-seam:*:javadoc</include>
+ </includes>
+ <outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ </dependencySet>
+
+ <dependencySet>
+ <outputDirectory>doc/ui/api</outputDirectory>
+ <useProjectArtifact>false</useProjectArtifact>
+ <unpack>true</unpack>
+ <includes>
+ <include>org.jboss.seam:jboss-seam-ui:*:javadoc</include>
+ </includes>
+ <outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ </dependencySet>
+
+ <!-- Add project sources -->
+ <dependencySet>
+ <outputDirectory>src</outputDirectory>
+ <useProjectArtifact>false</useProjectArtifact>
+ <unpack>true</unpack>
+ <outputFileNameMapping>${artifact.artifactId}</outputFileNameMapping>
+ <includes>
+ <include>org.jboss.seam:jboss-seam:*:project</include>
+ <include>org.jboss.seam:jboss-seam-debug:*:project</include>
+ <include>org.jboss.seam:jboss-seam-excel:*:project</include>
+ <include>org.jboss.seam:jboss-seam-flex:*:project</include>
+ <include>org.jboss.seam:jboss-seam-ioc:*:project</include>
+ <include>org.jboss.seam:jboss-seam-jul:*:project</include>
+ <include>org.jboss.seam:jboss-seam-mail:*:project</include>
+ <include>org.jboss.seam:jboss-seam-pdf:*:project</include>
+ <include>org.jboss.seam:jboss-seam-remoting:*:project</include>
+ <include>org.jboss.seam:jboss-seam-resteasy:*:project</include>
+ <include>org.jboss.seam:jboss-seam-rss:*:project</include>
+ <include>org.jboss.seam:jboss-seam-ui:*:project</include>
+ <include>org.jboss.seam:jboss-seam-wicket:*:project</include>
+ <include>org.jboss.seam:seam-integration-tests:*:project</include>
+ <include>org.jboss.seam:functional-tests:*:project</include>
+ </includes>
+ </dependencySet>
</dependencySets>
-
</assembly>
Modified: branches/community/Seam_2_3/extras/readme.txt
===================================================================
--- branches/community/Seam_2_3/extras/readme.txt 2011-07-08 17:03:04 UTC (rev 14123)
+++ branches/community/Seam_2_3/extras/readme.txt 2011-07-08 17:03:46 UTC (rev 14124)
@@ -2,4 +2,14 @@
------------------------------------------------------
Load /extras/jsUnit/testRunner.html in a web browser, then click "Browse" and
-load /src/test/jsUnit/jsUnitSeamRemoting.html. Then click "Run" to execute.
\ No newline at end of file
+load /src/test/jsUnit/jsUnitSeamRemoting.html. Then click "Run" to execute.
+
+Notice: Remoting is now as prototype using Jasmine maven plugin to get and run Jasmine framework for testing Javascript code.
+
+
+Mail-ra.rar
+------------------------------------------------------
+Copy/replace mail-ra.rar in <jboss-4.2.x_install_path>/server/<profile>/deploy/
+
+This RA is only for JBoss AS 4.2.x. JBoss AS 5 and newer has got already applied patches due we distribute this file.
+
Modified: branches/community/Seam_2_3/jboss-seam/pom.xml
===================================================================
--- branches/community/Seam_2_3/jboss-seam/pom.xml 2011-07-08 17:03:04 UTC (rev 14123)
+++ branches/community/Seam_2_3/jboss-seam/pom.xml 2011-07-08 17:03:46 UTC (rev 14124)
@@ -39,7 +39,7 @@
<executions>
<execution>
<id>attach-javadocs</id>
- <phase>install</phase>
+ <phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
Modified: branches/community/Seam_2_3/jboss-seam-gen/src/main/assembly/assembly.xml
===================================================================
--- branches/community/Seam_2_3/jboss-seam-gen/src/main/assembly/assembly.xml 2011-07-08 17:03:04 UTC (rev 14123)
+++ branches/community/Seam_2_3/jboss-seam-gen/src/main/assembly/assembly.xml 2011-07-08 17:03:46 UTC (rev 14124)
@@ -5,7 +5,7 @@
<id>distribution</id>
<formats>
- <format>dir</format>
+ <format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
Modified: branches/community/Seam_2_3/jboss-seam-parent/pom.xml
===================================================================
--- branches/community/Seam_2_3/jboss-seam-parent/pom.xml 2011-07-08 17:03:04 UTC (rev 14123)
+++ branches/community/Seam_2_3/jboss-seam-parent/pom.xml 2011-07-08 17:03:46 UTC (rev 14124)
@@ -1726,20 +1726,20 @@
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
- <executions>
- <execution>
- <id>distribution</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>src/main/assembly/distribution.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- </executions>
+<!-- <executions> -->
+<!-- <execution> -->
+<!-- <id>distribution</id> -->
+<!-- <phase>package</phase> -->
+<!-- <goals> -->
+<!-- <goal>single</goal> -->
+<!-- </goals> -->
+<!-- <configuration> -->
+<!-- <descriptors> -->
+<!-- <descriptor>src/main/assembly/distribution.xml</descriptor> -->
+<!-- </descriptors> -->
+<!-- </configuration> -->
+<!-- </execution> -->
+<!-- </executions> -->
</plugin>
<!-- Building -->
@@ -1870,6 +1870,7 @@
<module>../jboss-seam</module>
<module>../jboss-embedded-bootstrap</module>
<module>../seam-integration-tests</module>
+ <module>../functional-tests</module>
<!-- <module>../examples</module>-->
</modules>
@@ -1884,8 +1885,32 @@
<profile>
<id>distribution</id>
<modules>
- <module>distribution</module>
+ <module>../distribution</module>
+ <module>../examples</module>
+ <module>../seam-reference-guide</module>
</modules>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>distribution</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>project</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
</profile>
<profile>
<id>code-coverage</id>
Modified: branches/community/Seam_2_3/jboss-seam-ui/pom.xml
===================================================================
--- branches/community/Seam_2_3/jboss-seam-ui/pom.xml 2011-07-08 17:03:04 UTC (rev 14123)
+++ branches/community/Seam_2_3/jboss-seam-ui/pom.xml 2011-07-08 17:03:46 UTC (rev 14124)
@@ -57,7 +57,7 @@
<executions>
<execution>
<id>attach-javadocs</id>
- <phase>install</phase>
+ <phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
12 years, 10 months
Seam SVN: r14123 - in branches/community/Seam_2_3/jboss-seam-remoting: src/test and 2 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-07-08 13:03:04 -0400 (Fri, 08 Jul 2011)
New Revision: 14123
Added:
branches/community/Seam_2_3/jboss-seam-remoting/src/test/javascript/
branches/community/Seam_2_3/jboss-seam-remoting/src/test/javascript/remote.spec.js
branches/community/Seam_2_3/jboss-seam-remoting/src/test/jsUnit/
branches/community/Seam_2_3/jboss-seam-remoting/src/test/jsUnit/jsUnitSeamRemoting.html
Modified:
branches/community/Seam_2_3/jboss-seam-remoting/pom.xml
Log:
JBSEAM-4823 - added jasmine maven plugin for testing remote.js
Modified: branches/community/Seam_2_3/jboss-seam-remoting/pom.xml
===================================================================
--- branches/community/Seam_2_3/jboss-seam-remoting/pom.xml 2011-07-08 17:02:38 UTC (rev 14122)
+++ branches/community/Seam_2_3/jboss-seam-remoting/pom.xml 2011-07-08 17:03:04 UTC (rev 14123)
@@ -11,6 +11,25 @@
<artifactId>jboss-seam-remoting</artifactId>
<name>Seam Remoting</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.github.searls</groupId>
+ <artifactId>jasmine-maven-plugin</artifactId>
+ <version>1.0.2-beta-5</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <jsSrcDir>src/main/resources/org/jboss/seam/remoting/</jsSrcDir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
<dependencies>
Added: branches/community/Seam_2_3/jboss-seam-remoting/src/test/javascript/remote.spec.js
===================================================================
--- branches/community/Seam_2_3/jboss-seam-remoting/src/test/javascript/remote.spec.js (rev 0)
+++ branches/community/Seam_2_3/jboss-seam-remoting/src/test/javascript/remote.spec.js 2011-07-08 17:03:04 UTC (rev 14123)
@@ -0,0 +1,204 @@
+describe('Seam Remoting javascript suite', function () {
+
+ it('Confirm that URL encoding/decoding function we are using works', function () {
+ var val = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890!@#$%^&*()_-;',./:\"<>?~`\|[]{}+= ";
+ expect(decodeURIComponent(encodeURIComponent(val))).toEqual(val);
+ });
+
+ it('Seam.Remoting.Map tests GET', function () {
+ var map = new Seam.Remoting.Map();
+ var key = new Object();
+ var val = new Object();
+ map.put(key, val);
+ map.put(new Object(), new Object());
+ expect(map.get(key)).toEqual(val);
+ });
+
+ it('Seam.Remoting.Map tests PUT', function() {
+ var map = new Seam.Remoting.Map();
+ var key = new Object();
+ var val = new Object();
+ map.put(key, val);
+ expect(map.keySet()[0]).toEqual(key);
+ expect(map.values()[0]).toEqual(val);
+ });
+
+ it('Seam.Remoting.Map tests SIZE', function() {
+ var map = new Seam.Remoting.Map();
+ map.put("a", new Object());
+ expect(map.size()).toEqual(1);
+ });
+
+
+ it('Seam.Remoting.Map tests IsEmpty', function() {
+ var map = new Seam.Remoting.Map();
+ expect(map.isEmpty()).toBeTruthy();
+ map.put("a", new Object());
+ expect(map.isEmpty()).toBeFalsy();
+ });
+
+ it('Seam.Remoting.Map tests Set KeySet', function() {
+ var map = new Seam.Remoting.Map();
+ expect(map.keySet().length).toEqual(0);
+ var key = new Object();
+ map.put(key, null);
+ expect(map.keySet()[0]).toEqual(key);
+ expect(map.keySet().length).toEqual(1);
+ map.put(new Object(), null);
+ expect(map.keySet().length).toEqual(2);
+ });
+
+ it('Seam.Remoting.Map tests Values', function() {
+ var map = new Seam.Remoting.Map();
+ expect(map.keySet().length).toEqual(0);
+ var val = new Object();
+ map.put(new Object(), val);
+ expect(map.values()[0]).toEqual(val);
+ });
+
+ it('Seam.Remoting.Map tests MapRemove', function() {
+ var map = new Seam.Remoting.Map();
+ var key = new Object();
+ map.put(key, null);
+ expect(map.keySet().length).toEqual(1);
+ map.remove(key);
+ expect(map.keySet().length).toEqual(0);
+ });
+
+ it('Seam.Remoting.Map tests MapContains', function() {
+ var map = new Seam.Remoting.Map();
+ var key = new Object();
+ expect(map.contains(key)).toBeFalsy();
+ map.put(key, null);
+ expect(map.contains(key)).toBeTruthy();
+ });
+
+/** Seam.Remoting.Serialize tests **/
+
+ it('Seam.Remoting.Serialize testSerializeBool', function() {
+ expect(Seam.Remoting.serializeValue(true, "bool")).toEqual("<bool>true</bool>");
+ expect(Seam.Remoting.serializeValue(false, "bool")).toEqual("<bool>false</bool>");
+ expect(Seam.Remoting.serializeValue(true)).toEqual("<bool>true</bool>");
+ expect(Seam.Remoting.serializeValue(false)).toEqual("<bool>false</bool>");
+ });
+
+ it('Seam.Remoting.Serialize testSerializeNumber', function() {
+ expect(Seam.Remoting.serializeValue(123, "number")).toEqual("<number>123</number>");
+ expect(Seam.Remoting.serializeValue(123)).toEqual("<number>123</number>");
+ expect(Seam.Remoting.serializeValue(123.45)).toEqual("<number>123.45</number>");
+ });
+
+ it('Seam.Remoting.Serialize testSerializeDate', function() {
+ var dte = new Date(2005, 0, 1);
+ expect(Seam.Remoting.serializeValue(dte, "date")).toEqual("<date>20050101000000000</date>");
+ dte = new Date(2005, 10, 15, 12, 30, 9, 150);
+ expect(Seam.Remoting.serializeValue(dte, "date")).toEqual("<date>20051115123009150</date>");
+ expect(Seam.Remoting.serializeValue(dte)).toEqual("<date>20051115123009150</date>");
+ });
+
+ it('Seam.Remoting.Serialize testSerializeString', function() {
+ var val = "abc";
+ expect(Seam.Remoting.serializeValue(val, "str")).toEqual("<str>abc</str>");
+ expect(Seam.Remoting.serializeValue(val)).toEqual("<str>abc</str>");
+ });
+
+ it('Seam.Remoting.Serialize testSerializeBag', function() {
+ var bag = new Array();
+ bag.push(1);
+ expect(Seam.Remoting.serializeBag(bag, "bag")).toEqual("<bag><element><number>1</number></element></bag>");
+ expect(Seam.Remoting.serializeBag(bag)).toEqual("<bag><element><number>1</number></element></bag>");
+ bag.push("zzz");
+ expect(Seam.Remoting.serializeBag(bag, "bag")).toEqual("<bag><element><number>1</number></element><element><str>zzz</str></element></bag>");
+ expect(Seam.Remoting.serializeBag(bag)).toEqual("<bag><element><number>1</number></element><element><str>zzz</str></element></bag>");
+ });
+
+ it('Seam.Remoting.Serialize testSerializeMap', function() {
+ var map = new Seam.Remoting.Map();
+ map.put("1", "zzzz");
+ expect(Seam.Remoting.serializeMap(map, "map")).toEqual("<map><element><k><str>1</str></k><v><str>zzzz</str></v></element></map>");
+ expect(Seam.Remoting.serializeMap(map)).toEqual("<map><element><k><str>1</str></k><v><str>zzzz</str></v></element></map>");
+ });
+
+ it('Seam.Remoting.Serialize testSerializeNull', function() {
+ expect(Seam.Remoting.serializeValue(null)).toEqual("<null/>");
+ });
+
+ it('Seam.Remoting.Serialize testComponent', function() {
+ var comp = function() { };
+ comp.__name = "testComponent";
+
+ expect(Seam.Component.isRegistered("testComponent")).toBeFalsy();
+ Seam.Component.register(comp);
+ expect(Seam.Component.isRegistered("testComponent")).toBeTruthy();
+
+ var instance = Seam.Component.getInstance("testComponent");
+ expect(Seam.Component.getInstance("testComponent")).toEqual(instance);
+ expect(instance).not.toEqual(Seam.Component.newInstance("testComponent1"));
+
+ expect(Seam.Component.getComponentName(instance)).toEqual("testComponent");
+ expect(Seam.Component.getComponentType(instance)).toEqual(comp);
+ });
+
+ it('Seam.Remoting.Serialize testTypes', function() {
+ var t = function() { };
+ t.__name = "testType";
+
+ Seam.Remoting.registerType(t);
+
+ var instance = Seam.Remoting.createType("testType");
+ expect(Seam.Remoting.getTypeName(instance)).toEqual("testType");
+ expect(Seam.Remoting.getType(instance)).toEqual(t);
+ });
+
+ it('Seam.Remoting.Serialize testExtractEncodedSessionId', function() {
+ expect('abcdefg').toEqual(Seam.Remoting.extractEncodedSessionId('http://localhost:8080/contextPath/page.seam;jsessionid=abcdefg?foo=bar'));
+ expect('abcdefg').toEqual(Seam.Remoting.extractEncodedSessionId('http://localhost:8080/contextPath/page.seam;jsessionid=abcdefg'));
+ expect(null).toEqual(Seam.Remoting.extractEncodedSessionId('http://localhost:8080/contextPath/page.seam'));
+ });
+
+ // THIS doesn't work
+ xit('Seam.Remoting.Serialize testEncodeAjaxRequest', function() {
+ var restoreXMLHttpRequest = window.XMLHttpRequest;
+ window.XMLHttpRequest = dummyXMLHttpRequest;
+ Seam.Remoting.resourcePath = "/resourcePath";
+ Seam.Remoting.encodedSessionId = 'abcdefg';
+ var req = Seam.Remoting.sendAjaxRequest(null, "/execute", null, true);
+ expect(req.method).toEqual("POST");
+ expect(req.path).toEqual("/resourcePath/execute;jsessionid=abcdefg");
+ expect(req.async).toBeTruthy();
+ window.XMLHttpRequest = restoreXMLHttpRequest;
+ });
+
+ // THIS doesn't work
+ xit('Seam.Remoting.Serialize testNoEncodeAjaxRequest', function() {
+ var restoreXMLHttpRequest = window.XMLHttpRequest;
+ window.XMLHttpRequest = dummyXMLHttpRequest;
+ Seam.Remoting.resourcePath = "/resourcePath";
+ Seam.Remoting.encodedSessionId = null;
+ var req = Seam.Remoting.sendAjaxRequest(null, "/execute", null, true);
+ expect(req.method).toEqual("POST");
+ expect(req.path).toEqual("/resourcePath/execute");
+ expect(req.async).toBeTruthy();
+ window.XMLHttpRequest = restoreXMLHttpRequest;
+ });
+
+});
+
+
+function dummyXMLHttpRequest() {
+ this.method = null;
+ this.path = null;
+ this.async = null;
+}
+
+dummyXMLHttpRequest.prototype = {
+ open: function(method, path, async) {
+ this.method = method;
+ this.path = path;
+ this.async = async;
+ },
+
+ send: function(envelope) {}
+}
+
+
Added: branches/community/Seam_2_3/jboss-seam-remoting/src/test/jsUnit/jsUnitSeamRemoting.html
===================================================================
--- branches/community/Seam_2_3/jboss-seam-remoting/src/test/jsUnit/jsUnitSeamRemoting.html (rev 0)
+++ branches/community/Seam_2_3/jboss-seam-remoting/src/test/jsUnit/jsUnitSeamRemoting.html 2011-07-08 17:03:04 UTC (rev 14123)
@@ -0,0 +1,224 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Seam Remoting JsUnit Tests</title>
+<link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
+<script language="JavaScript" type="text/javascript" src="../../../extras/jsUnit/app/jsUnitCore.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../remoting/org/jboss/seam/remoting/remote.js"></script>
+<script language="JavaScript" type="text/javascript">
+
+/** Confirm that the URL encoding/decoding function we are using works **/
+
+function testURLEncodeDecode() {
+ var val = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890!@#$%^&*()_-;',./:\"<>?~`\|[]{}+= ";
+ assertEquals(val, decodeURIComponent(encodeURIComponent(val)));
+}
+
+/** Seam.Remoting.Map tests **/
+
+function testMapGet() {
+ var map = new Seam.Remoting.Map();
+ var key = new Object();
+ var val = new Object();
+ map.put(key, val);
+ map.put(new Object(), new Object());
+ assertEquals(val, map.get(key));
+}
+
+function testMapPut() {
+ var map = new Seam.Remoting.Map();
+ var key = new Object();
+ var val = new Object();
+ map.put(key, val);
+ assertEquals(key, map.keySet()[0]);
+ assertEquals(val, map.values()[0]);
+}
+
+function testMapSize() {
+ var map = new Seam.Remoting.Map();
+ map.put("a", new Object());
+ assertEquals("Map size should be 1", 1, map.size());
+}
+
+function testMapIsEmpty() {
+ var map = new Seam.Remoting.Map();
+ assertTrue("Map should be empty", map.isEmpty());
+ map.put("a", new Object());
+ assertFalse("Map should not be empty", map.isEmpty());
+}
+
+function testMapKeySet() {
+ var map = new Seam.Remoting.Map();
+ assertEquals("Keyset size should be 0", 0, map.keySet().length);
+ var key = new Object();
+ map.put(key, null);
+ assertEquals(map.keySet()[0], key);
+ assertEquals("Keyset size should be 1", 1, map.keySet().length);
+ map.put(new Object(), null);
+ assertEquals("Keyset size should be 2", 2, map.keySet().length);
+}
+
+function testMapValues() {
+ var map = new Seam.Remoting.Map();
+ assertEquals("Values sizes should be 0", 0, map.keySet().length);
+ var val = new Object();
+ map.put(new Object(), val);
+ assertEquals(val, map.values()[0]);
+}
+
+function testMapRemove() {
+ var map = new Seam.Remoting.Map();
+ var key = new Object();
+ map.put(key, null);
+ assertEquals(1, map.values().length);
+ map.remove(key);
+ assertEquals(0, map.values().length);
+}
+function testMapContains() {
+ var map = new Seam.Remoting.Map();
+ var key = new Object();
+ assertFalse(map.contains(key));
+ map.put(key, null);
+ assertTrue(map.contains(key));
+}
+
+/** Seam.Remoting.Serialize tests **/
+
+function testSerializeBool() {
+ assertEquals("<bool>true</bool>", Seam.Remoting.serializeValue(true, "bool"));
+ assertEquals("<bool>false</bool>", Seam.Remoting.serializeValue(false, "bool"));
+ assertEquals("<bool>true</bool>", Seam.Remoting.serializeValue(true));
+ assertEquals("<bool>false</bool>", Seam.Remoting.serializeValue(false));
+}
+
+function testSerializeNumber() {
+ assertEquals("<number>123</number>", Seam.Remoting.serializeValue(123, "number"));
+ assertEquals("<number>123</number>", Seam.Remoting.serializeValue(123));
+ assertEquals("<number>123.45</number>", Seam.Remoting.serializeValue(123.45));
+}
+
+function testSerializeDate() {
+ var dte = new Date(2005, 0, 1);
+ assertEquals("<date>20050101000000000</date>", Seam.Remoting.serializeValue(dte, "date"));
+ assertEquals("<date>20050101000000000</date>", Seam.Remoting.serializeValue(dte));
+ dte = new Date(2005, 10, 15, 12, 30, 9, 150);
+ assertEquals("<date>20051115123009150</date>", Seam.Remoting.serializeValue(dte, "date"));
+ assertEquals("<date>20051115123009150</date>", Seam.Remoting.serializeValue(dte));
+}
+
+function testSerializeString() {
+ var val = "abc";
+ assertEquals("<str>abc</str>", Seam.Remoting.serializeValue(val, "str"));
+ assertEquals("<str>abc</str>", Seam.Remoting.serializeValue(val));
+}
+
+function testSerializeBag() {
+ var bag = new Array();
+ bag.push(1);
+ assertEquals("<bag><element><number>1</number></element></bag>", Seam.Remoting.serializeBag(bag, "bag"));
+ assertEquals("<bag><element><number>1</number></element></bag>", Seam.Remoting.serializeBag(bag));
+ bag.push("zzz");
+ assertEquals("<bag><element><number>1</number></element><element><str>zzz</str></element></bag>",
+ Seam.Remoting.serializeBag(bag, "bag"));
+ assertEquals("<bag><element><number>1</number></element><element><str>zzz</str></element></bag>",
+ Seam.Remoting.serializeBag(bag));
+}
+
+function testSerializeMap() {
+ var map = new Seam.Remoting.Map();
+ map.put("1", "zzzz");
+ assertEquals("<map><element><k><str>1</str></k><v><str>zzzz</str></v></element></map>",
+ Seam.Remoting.serializeMap(map, "map"));
+ assertEquals("<map><element><k><str>1</str></k><v><str>zzzz</str></v></element></map>",
+ Seam.Remoting.serializeMap(map));
+
+}
+
+function testSerializeNull() {
+ assertEquals("<null/>", Seam.Remoting.serializeValue(null));
+}
+
+function testComponent() {
+ var comp = function() { };
+ comp.__name = "testComponent";
+
+ assertFalse(Seam.Component.isRegistered("testComponent"));
+ Seam.Component.register(comp);
+ assertTrue(Seam.Component.isRegistered("testComponent"));
+
+ var instance = Seam.Component.getInstance("testComponent");
+ assertEquals(instance, Seam.Component.getInstance("testComponent"));
+ assertNotEquals(instance, Seam.Component.newInstance("testComponent"));
+ assertEquals("testComponent", Seam.Component.getComponentName(instance));
+ assertEquals(comp, Seam.Component.getComponentType(instance));
+}
+
+function testTypes() {
+ var t = function() { };
+ t.__name = "testType";
+
+ Seam.Remoting.registerType(t);
+
+ var instance = Seam.Remoting.createType("testType");
+ assertEquals("testType", Seam.Remoting.getTypeName(instance));
+ assertEquals(t, Seam.Remoting.getType(instance));
+}
+
+function testExtractEncodedSessionId() {
+ assertEquals('abcdefg', Seam.Remoting.extractEncodedSessionId('http://localhost:8080/contextPath/page.seam;jsessionid=abcdefg?foo=bar'));
+ assertEquals('abcdefg', Seam.Remoting.extractEncodedSessionId('http://localhost:8080/contextPath/page.seam;jsessionid=abcdefg'));
+ assertEquals(null, Seam.Remoting.extractEncodedSessionId('http://localhost:8080/contextPath/page.seam'));
+}
+
+function testEncodeAjaxRequest() {
+ var restoreXMLHttpRequest = window.XMLHttpRequest;
+ window.XMLHttpRequest = dummyXMLHttpRequest;
+ Seam.Remoting.resourcePath = "/resourcePath";
+ Seam.Remoting.encodedSessionId = 'abcdefg';
+ var req = Seam.Remoting.sendAjaxRequest(null, "/execute", null, true);
+ assertEquals("POST", req.method);
+ assertEquals("/resourcePath/execute;jsessionid=abcdefg", req.path);
+ assertEquals(true, req.async);
+ window.XMLHttpRequest = restoreXMLHttpRequest;
+}
+
+function testNoEncodeAjaxRequest() {
+ var restoreXMLHttpRequest = window.XMLHttpRequest;
+ window.XMLHttpRequest = dummyXMLHttpRequest;
+ Seam.Remoting.resourcePath = "/resourcePath";
+ Seam.Remoting.encodedSessionId = null;
+ var req = Seam.Remoting.sendAjaxRequest(null, "/execute", null, true);
+ assertEquals("POST", req.method);
+ assertEquals("/resourcePath/execute", req.path);
+ assertEquals(true, req.async);
+ window.XMLHttpRequest = restoreXMLHttpRequest;
+}
+
+function dummyXMLHttpRequest() {
+ this.method = null;
+ this.path = null;
+ this.async = null;
+}
+
+dummyXMLHttpRequest.prototype = {
+ open: function(method, path, async) {
+ this.method = method;
+ this.path = path;
+ this.async = async;
+ },
+
+ send: function(envelope) {}
+}
+
+</script>
+</head>
+
+<body>
+<h1>Seam Remoting JsUnit Tests</h1>
+
+<p>This page contains tests for the Seam Remoting Javascript source.</p>
+</body>
+</html>
12 years, 10 months
Seam SVN: r14122 - in branches/community/Seam_2_3/seam-reference-guide: src/docbook/en-US and 1 other directory.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-07-08 13:02:38 -0400 (Fri, 08 Jul 2011)
New Revision: 14122
Added:
branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/.gitignore
Modified:
branches/community/Seam_2_3/seam-reference-guide/pom.xml
Log:
seam reference guide project polishing
Modified: branches/community/Seam_2_3/seam-reference-guide/pom.xml
===================================================================
--- branches/community/Seam_2_3/seam-reference-guide/pom.xml 2011-07-08 17:02:15 UTC (rev 14121)
+++ branches/community/Seam_2_3/seam-reference-guide/pom.xml 2011-07-08 17:02:38 UTC (rev 14122)
@@ -114,7 +114,7 @@
<!-- DocBook (this is the version used, unless user project imports one...) -->
<groupId>net.sf.docbook</groupId>
<artifactId>docbook</artifactId>
- <version>1.72.0</version>
+ <version>1.74.0</version>
</dependency>
</dependencies>
Added: branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/.gitignore
===================================================================
--- branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/.gitignore (rev 0)
+++ branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/.gitignore 2011-07-08 17:02:38 UTC (rev 14122)
@@ -0,0 +1 @@
+/Version_Info.xml
12 years, 10 months
Seam SVN: r14121 - branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-07-08 13:02:15 -0400 (Fri, 08 Jul 2011)
New Revision: 14121
Modified:
branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/Security.xml
Log:
fixed some xsl and layout errors with table column width - tables
PermissionStore
Interface and Entity Permission annotations
Modified: branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/Security.xml
===================================================================
--- branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/Security.xml 2011-06-29 11:52:05 UTC (rev 14120)
+++ branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/Security.xml 2011-07-08 17:02:15 UTC (rev 14121)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<chapter id="security">
<title>Security</title>
@@ -1229,7 +1229,7 @@
<table>
<title>LdapIdentityStore Configuration Properties</title>
- <tgroup cols="2">
+ <tgroup cols="3">
<colspec colnum="1" colwidth="1*" />
<colspec colnum="2" colwidth="2*" />
<colspec colnum="3" colwidth="3*" />
@@ -3648,10 +3648,10 @@
<table>
<title>PermissionStore interface</title>
- <tgroup cols="2">
- <colspec colnum="1" colwidth="1*" />
- <colspec colnum="2" colwidth="2*" />
- <colspec colnum="3" colwidth="3*" />
+ <tgroup cols="3">
+ <colspec colnum="1" colwidth="2*" />
+ <colspec colnum="2" colwidth="3*" />
+ <colspec colnum="3" colwidth="2*" />
<thead>
<row>
@@ -3866,8 +3866,8 @@
<table>
<title>Entity Permission annotations</title>
- <tgroup cols="2">
- <colspec colnum="1" colwidth="1*" />
+ <tgroup cols="3">
+ <colspec colnum="1" colwidth="2*" />
<colspec colnum="2" colwidth="1*" />
<colspec colnum="3" colwidth="3*" />
@@ -4360,7 +4360,7 @@
<table>
<title>PermissionManager API methods</title>
- <tgroup cols="2">
+ <tgroup cols="3">
<colspec colnum="1" colwidth="2*" />
<colspec colnum="2" colwidth="3*" />
<colspec colnum="3" colwidth="3*" />
12 years, 10 months