[tapestry5-cayenne] r242 committed - [maven-release-plugin] copy for tag 0.5

2 views
Skip to first unread message

tapestry...@googlecode.com

unread,
Apr 6, 2012, 2:01:23 AM4/6/12
to tapestry5-caye...@googlegroups.com
Revision: 242
Author: robert.zeigler
Date: Thu Apr 5 22:49:12 2012
Log: [maven-release-plugin] copy for tag 0.5
http://code.google.com/p/tapestry5-cayenne/source/detail?r=242

Added:
/tags/0.5

/tags/0.5/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/T5CayenneConstants.java

/tags/0.5/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/integration/TapestryCayenneIntegrationTest.java
/tags/0.5/tapestry5-cayenne-server/src/test/resources/cayenne-App0.xml
Deleted:

/tags/0.5/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/services/CayennePrimaryKeyEncoder.java

/tags/0.5/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/integration/TapestryCayenneIntegrationTests.java
/tags/0.5/tapestry5-cayenne-server/src/test/resources/App0Node.driver.xml
/tags/0.5/tapestry5-cayenne-server/src/test/resources/cayenne.xml
Replaced:
/tags/0.5/pom.xml
/tags/0.5/tapestry5-cayenne-client/pom.xml
/tags/0.5/tapestry5-cayenne-core/pom.xml

/tags/0.5/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/annotations/CommitAfter.java

/tags/0.5/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/components/Select.java

/tags/0.5/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/services/CayenneBeanModelSource.java

/tags/0.5/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/services/CayenneCommitAfterWorker.java

/tags/0.5/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/services/TapestryCayenneCoreModule.java

/tags/0.5/tapestry5-cayenne-core/src/main/resources/com/googlecode/tapestry5cayenne/components/Select.tml
/tags/0.5/tapestry5-cayenne-server/pom.xml

/tags/0.5/tapestry5-cayenne-server/src/main/java/com/googlecode/tapestry5cayenne/services/DataContextProviderImpl.java

/tags/0.5/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/TestUtils.java

/tags/0.5/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/integration/TestBlockContributions.java

/tags/0.5/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/integration/app0/pages/CommitAfterTestPage.java

/tags/0.5/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/integration/app0/services/AppModule.java

/tags/0.5/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/services/TestBindingAndGridDataSourceCoercion.java

/tags/0.5/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/services/TestModule.java
/tags/0.5/tapestry5-cayenne-server/src/test/resources/App0Map.map.xml

/tags/0.5/tapestry5-cayenne-server/src/test/resources/com/googlecode/tapestry5cayenne/integration/app0/pages/CommitAfterTestPage.tml

=======================================
--- /dev/null
+++
/tags/0.5/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/T5CayenneConstants.java
Thu Apr 5 22:49:12 2012
@@ -0,0 +1,11 @@
+package com.googlecode.tapestry5cayenne;
+
+public class T5CayenneConstants {
+
+ /* The name of the project file to use for bootstrapping.
+ * Note that t5cayenne integration currently only supports a single
project
+ * per application. Defaults to cayenne.xml, but that will usually
need to
+ * be overridden in Cayenne 3.1*/
+ public static final String PROJECT_FILE="tapestry-cayenne.projectfile";
+
+}
=======================================
--- /dev/null
+++
/tags/0.5/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/integration/TapestryCayenneIntegrationTest.java
Thu Apr 5 22:49:12 2012
@@ -0,0 +1,47 @@
+package com.googlecode.tapestry5cayenne.integration;
+
+import org.apache.tapestry5.test.AbstractIntegrationTestSuite;
+import org.apache.tapestry5.test.SeleniumTestCase;
+import org.testng.annotations.Test;
+
+@Test(sequential=true,groups="integration")
+public class TapestryCayenneIntegrationTest extends
AbstractIntegrationTestSuite {
+
+ public TapestryCayenneIntegrationTest() {
+ super("src/test/app0");
+ }
+
+ public void test_commit_after() {
+ open("/commitaftertestpage");
+ waitForPageToLoad();
+ assertTextPresent("Dali");
+ clickAndWait("link=Commit Ok");
+ assertTextPresent("Commitokname");
+ clickAndWait("link=Runtime Exception");
+ assertTextPresent("Commitokname");
+ clickAndWait("link=Checked Exception");
+ assertTextPresent("savesokwithcheckedexceptionname");
+ }
+
+ public void test_inject_objectcontext() {
+ open("/injectobjectcontexttestpage");
+ waitForPageToLoad();
+ assertTextPresent("Injecting the current context really /does/
give you the current context.");
+ assertTextPresent("Injecting with no annotation is the same as
injecting with the octype current.");
+ assertTextPresent("Injecting with octype child yields child of
current context.");
+ assertTextPresent("Injecting with octype new yields a new context,
not child of current context.");
+
+ String newContextHash = getText("id=newContextProp").trim();
+
+ clickAndWait("link=Invalidate Session");
+
+ assertTextPresent("Injecting the current context really /does/
give you the current context.");
+ assertTextPresent("Injecting with no annotation is the same as
injecting with the octype current.");
+ assertTextPresent("Injecting with octype child yields child of
current context.");
+ assertTextPresent("Injecting with octype new yields a new context,
not child of current context.");
+
+ String newContextHash2 = getText("id=newContextProp").trim();
+ assertFalse(newContextHash.equals(newContextHash2));
+
+ }
+}
=======================================
--- /dev/null
+++ /tags/0.5/tapestry5-cayenne-server/src/test/resources/cayenne-App0.xml
Thu Apr 5 22:49:12 2012
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<domain project-version="6">
+ <map name="App0Map"/>
+
+ <node name="App0Node"
+
factory="org.apache.cayenne.configuration.server.XMLPoolingDataSourceFactory"
+ >
+ <map-ref name="App0Map"/>
+ <data-source>
+ <driver value="org.hsqldb.jdbcDriver"/>
+ <url value="jdbc:hsqldb:mem:app0"/>
+ <connectionPool min="1" max="1"/>
+ <login userName="sa"/>
+ </data-source>
+ </node>
+</domain>
=======================================
---
/trunk/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/services/CayennePrimaryKeyEncoder.java
Sat Oct 3 08:17:52 2009
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.googlecode.tapestry5cayenne.services;
-
-import java.util.List;
-
-import org.apache.cayenne.Persistent;
-import org.apache.tapestry5.PrimaryKeyEncoder;
-import org.apache.tapestry5.ValueEncoder;
-import org.apache.tapestry5.ioc.annotations.Marker;
-
-import com.googlecode.tapestry5cayenne.annotations.Cayenne;
-
-/**
- * Providers a PrimaryKeyEncoder for Persistent objects.
- * Any page or component wherein a primary key encoder is needed for
Persistent objects,
- * an encoder is conveniently available by doing:
- * @Inject
- * @Cayenne
- * private PrimaryKeyEncoder encoder;
- * @author robertz
- *
- */
-@Marker(Cayenne.class)
-public class CayennePrimaryKeyEncoder implements
PrimaryKeyEncoder<String,Persistent> {
-
- private final ValueEncoder<Persistent> _encoder;
-
- public CayennePrimaryKeyEncoder(@Cayenne ValueEncoder<Persistent>
encoder) {
- _encoder = encoder;
- }
-
- public void prepareForKeys(List<String> arg0) {}
-
- public String toKey(Persistent dao) {
- return _encoder.toClient(dao);
- }
-
- public Persistent toValue(String key) {
- return _encoder.toValue(key);
- }
-
- public Class<String> getKeyType() {
- return String.class;
- }
-}
=======================================
---
/trunk/tapestry5-cayenne-server/src/test/java/com/googlecode/tapestry5cayenne/integration/TapestryCayenneIntegrationTests.java
Sat Mar 12 12:33:24 2011
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.googlecode.tapestry5cayenne.integration;
-
-import org.apache.tapestry5.test.AbstractIntegrationTestSuite;
-import org.apache.tapestry5.test.SeleniumTestCase;
-import org.testng.annotations.Test;
-
-@Test(sequential=true,groups="integration")
-public class TapestryCayenneIntegrationTests extends
AbstractIntegrationTestSuite {
-
- public TapestryCayenneIntegrationTests() {
- super("src/test/app0");
- }
-
- public void test_commit_after() {
- open("/commitaftertestpage");
- waitForPageToLoad();
- assertTextPresent("Dali");
- clickAndWait("link=Commit Ok");
- assertTextPresent("commitokname");
- clickAndWait("link=Runtime Exception");
- assertTextPresent("commitokname");
- clickAndWait("link=Checked Exception");
- assertTextPresent("savesokwithcheckedexceptionname");
- }
-
- public void test_inject_objectcontext() {
- open("/injectobjectcontexttestpage");
- waitForPageToLoad();
- assertTextPresent("Injecting the current context really /does/
give you the current context.");
- assertTextPresent("Injecting with no annotation is the same as
injecting with the octype current.");
- assertTextPresent("Injecting with octype child yields child of
current context.");
- assertTextPresent("Injecting with octype new yields a new context,
not child of current context.");
-
- String newContextHash = getText("id=newContextProp").trim();
-
- clickAndWait("link=Invalidate Session");
-
- assertTextPresent("Injecting the current context really /does/
give you the current context.");
- assertTextPresent("Injecting with no annotation is the same as
injecting with the octype current.");
- assertTextPresent("Injecting with octype child yields child of
current context.");
- assertTextPresent("Injecting with octype new yields a new context,
not child of current context.");
-
- String newContextHash2 = getText("id=newContextProp").trim();
- assertFalse(newContextHash.equals(newContextHash2));
-
- }
-}
=======================================
--- /trunk/tapestry5-cayenne-server/src/test/resources/App0Node.driver.xml
Tue Aug 24 10:51:09 2010
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<driver project-version="3.0.0.1" class="org.hsqldb.jdbcDriver">
- <url value="jdbc:hsqldb:mem:app0"/>
- <connectionPool min="1" max="1"/>
- <login userName="sa"/>
-</driver>
=======================================
--- /trunk/tapestry5-cayenne-server/src/test/resources/cayenne.xml Tue Aug
24 10:51:09 2010
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<domains project-version="3.0.0.1">
-<domain name="App0">
- <map name="App0Map" location="App0Map.map.xml"/>
-
- <node name="App0Node"
- datasource="App0Node.driver.xml"
- factory="org.apache.cayenne.conf.DriverDataSourceFactory">
- <map-ref name="App0Map"/>
- </node>
-</domain>
-</domains>

Reply all
Reply to author
Forward
0 new messages