Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2007-07-21 09:27:48 +0000
committermtaal2007-07-21 09:27:48 +0000
commit0fe3d174870264883e724a86729ad394461fd071 (patch)
treecaec37e2652abea6f63ddfd0efa80898dadab74a
parentacf9b3ebfe00c07396be77341751b82898978701 (diff)
downloadorg.eclipse.emf.teneo-0fe3d174870264883e724a86729ad394461fd071.tar.gz
org.eclipse.emf.teneo-0fe3d174870264883e724a86729ad394461fd071.tar.xz
org.eclipse.emf.teneo-0fe3d174870264883e724a86729ad394461fd071.zip
[197273]
-rw-r--r--tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/sample/CatalogAction.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/sample/CatalogAction.java b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/sample/CatalogAction.java
index 848ca8e6a..11c5d2cbe 100644
--- a/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/sample/CatalogAction.java
+++ b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/sample/CatalogAction.java
@@ -11,7 +11,7 @@
* Martin Taal
* </copyright>
*
- * $Id: CatalogAction.java,v 1.4 2007/07/17 13:59:32 mtaal Exp $
+ * $Id: CatalogAction.java,v 1.5 2007/07/21 09:27:48 mtaal Exp $
*/
package org.eclipse.emf.teneo.test.emf.sample;
@@ -36,9 +36,12 @@ import org.eclipse.emf.teneo.test.stores.TestStore;
* to catalog, delete from catalog.
*
* @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public abstract class CatalogAction extends AbstractTestAction {
+
+ private static int COMMENT_LENGTH = 10;
+
public CatalogAction() {
super(CatalogPackage.eINSTANCE);
}
@@ -47,6 +50,7 @@ public abstract class CatalogAction extends AbstractTestAction {
public Properties getExtraConfigurationProperties() {
final Properties props = new Properties();
props.setProperty(PersistenceOptions.SET_DEFAULT_CASCADE_ON_NON_CONTAINMENT, "true");
+ props.setProperty(PersistenceOptions.MAX_COMMENT_LENGTH, COMMENT_LENGTH + "");
return props;
}
@@ -265,8 +269,9 @@ public abstract class CatalogAction extends AbstractTestAction {
// test the comments in the hdm
if (store.isHibernateTestStore()) {
final String[] test =
- new String[] { "My product documentation", "My description documentation",
- "My producttype documentation" };
+ new String[] { "My product documentation".substring(0, COMMENT_LENGTH),
+ "My description documentation".substring(0, COMMENT_LENGTH),
+ "My producttype documentation".substring(0, COMMENT_LENGTH) };
final String xml = store.getMappingXML();
for (String t : test) {
if (xml.indexOf(t) == -1) {

Back to the top