JBoss Tools SVN: r6663 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/xpl.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-02-29 16:21:15 -0500 (Fri, 29 Feb 2008)
New Revision: 6663
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/xpl/StringSubstitutionEngineClone.java
Log:
fix compilation error
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/xpl/StringSubstitutionEngineClone.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/xpl/StringSubstitutionEngineClone.java 2008-02-29 21:21:04 UTC (rev 6662)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/xpl/StringSubstitutionEngineClone.java 2008-02-29 21:21:15 UTC (rev 6663)
@@ -20,7 +20,6 @@
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.jboss.ide.eclipse.archives.core.ArchivesCore;
-import org.jboss.ide.eclipse.archives.core.ArchivesCorePlugin;
import org.jboss.ide.eclipse.archives.core.model.IVariableManager;
/**
@@ -251,7 +250,7 @@
}
if( !manager.containsVariable(name)) {
if( reportUndefinedVariables )
- throw new CoreException(new Status(IStatus.ERROR, ArchivesCorePlugin.PLUGIN_ID, "Variable " + name + " undefined"));
+ throw new CoreException(new Status(IStatus.ERROR, ArchivesCore.PLUGIN_ID, "Variable " + name + " undefined"));
return getOriginalVarText(var);
}
16 years, 10 months
JBoss Tools SVN: r6660 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-02-29 15:47:23 -0500 (Fri, 29 Feb 2008)
New Revision: 6660
Removed:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/xpl/
Log:
fix compilation errors in archives.core. The problem is src/main source folde cannot have links to classes from src/eclipse.
The error is:
[java] [javac] Collection is a raw type. References to generic type Collection<E> should be parameterized
[java] [javac] ----------
[java] [javac] ----------
[java] [javac] 161. ERROR in /home/hudson/jbosstools-build/eclipse/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/xpl/StringSubstitutionEngineClone.java (at line 23)
[java] [javac] import org.jboss.ide.eclipse.archives.core.ArchivesCorePlugin;
[java] [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[java] [javac] The import org.jboss.ide.eclipse.archives.core.ArchivesCorePlugin cannot be resolved
/org/jboss/ide/eclipse/archives/core/xpl package is moved to src/eclipse to fix the problem.
16 years, 10 months
JBoss Tools SVN: r6659 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-02-29 15:47:21 -0500 (Fri, 29 Feb 2008)
New Revision: 6659
Added:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/xpl/
Log:
fix compilation errors in archives.core. The problem is src/main source folde cannot have links to classes from src/eclipse.
The error is:
[java] [javac] Collection is a raw type. References to generic type Collection<E> should be parameterized
[java] [javac] ----------
[java] [javac] ----------
[java] [javac] 161. ERROR in /home/hudson/jbosstools-build/eclipse/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/xpl/StringSubstitutionEngineClone.java (at line 23)
[java] [javac] import org.jboss.ide.eclipse.archives.core.ArchivesCorePlugin;
[java] [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[java] [javac] The import org.jboss.ide.eclipse.archives.core.ArchivesCorePlugin cannot be resolved
/org/jboss/ide/eclipse/archives/core/xpl package is moved to src/eclipse to fix the problem.
Copied: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/xpl (from rev 6645, trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/xpl)
16 years, 10 months
JBoss Tools SVN: r6658 - trunk/hibernatetools/docs/reference.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2008-02-29 12:34:59 -0500 (Fri, 29 Feb 2008)
New Revision: 6658
Added:
trunk/hibernatetools/docs/reference/pom.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1703 Maven2 migration + jboss.org styles
Added: trunk/hibernatetools/docs/reference/pom.xml
===================================================================
--- trunk/hibernatetools/docs/reference/pom.xml (rev 0)
+++ trunk/hibernatetools/docs/reference/pom.xml 2008-02-29 17:34:59 UTC (rev 6658)
@@ -0,0 +1,114 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>hibernate-tools-ref-guide-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>Hibernate_Tools_Reference_Guide_(${translation})</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.0.0</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>com.uwyn</groupId>
+ <artifactId>jhighlight</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>de.java2html</groupId>
+ <artifactId>java2html</artifactId>
+ <version>5.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.exadel.docbook.colorer</groupId>
+ <artifactId>highlight</artifactId>
+ <version>1.0</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDocumentName>master.xml</sourceDocumentName>
+ <sourceDirectory>${pom.basedir}/en</sourceDirectory>
+ <imageResource>
+ <directory>${pom.basedir}/en</directory>
+ <includes>
+ <include>images/**/*</include>
+ </includes>
+ </imageResource>
+ <!--<cssResource>
+ <directory>src/main/css</directory>
+ </cssResource>-->
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>
+ <finalName>${pom.name}.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
+ <!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
+ <!-- todo : replace this with direct svn access once the svnkit providers are available -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+
+
+</project>
16 years, 10 months
JBoss Tools SVN: r6657 - trunk/jbpm/docs/reference.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2008-02-29 12:18:54 -0500 (Fri, 29 Feb 2008)
New Revision: 6657
Added:
trunk/jbpm/docs/reference/pom.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1703 Maven2 migration + jboss.org styles
Added: trunk/jbpm/docs/reference/pom.xml
===================================================================
--- trunk/jbpm/docs/reference/pom.xml (rev 0)
+++ trunk/jbpm/docs/reference/pom.xml 2008-02-29 17:18:54 UTC (rev 6657)
@@ -0,0 +1,114 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>jBPM-tools-ref-guide-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>jBPM_Tools_Reference_Guide_(${translation})</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.0.0</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>com.uwyn</groupId>
+ <artifactId>jhighlight</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>de.java2html</groupId>
+ <artifactId>java2html</artifactId>
+ <version>5.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.exadel.docbook.colorer</groupId>
+ <artifactId>highlight</artifactId>
+ <version>1.0</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDocumentName>master.xml</sourceDocumentName>
+ <sourceDirectory>${pom.basedir}/en</sourceDirectory>
+ <imageResource>
+ <directory>${pom.basedir}/en</directory>
+ <includes>
+ <include>images/**/*</include>
+ </includes>
+ </imageResource>
+ <!--<cssResource>
+ <directory>src/main/css</directory>
+ </cssResource>-->
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>
+ <finalName>${pom.name}.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
+ <!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
+ <!-- todo : replace this with direct svn access once the svnkit providers are available -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+
+
+</project>
16 years, 10 months
JBoss Tools SVN: r6656 - trunk/seam/docs/reference.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2008-02-29 12:15:02 -0500 (Fri, 29 Feb 2008)
New Revision: 6656
Modified:
trunk/seam/docs/reference/pom.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1703 pdf name correction
Modified: trunk/seam/docs/reference/pom.xml
===================================================================
--- trunk/seam/docs/reference/pom.xml 2008-02-29 17:09:51 UTC (rev 6655)
+++ trunk/seam/docs/reference/pom.xml 2008-02-29 17:15:02 UTC (rev 6656)
@@ -8,7 +8,7 @@
<artifactId>seam-tools-ref-guide-${translation}</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jdocbook</packaging>
- <name>Seam_Tools_Reference Guide_(${translation})</name>
+ <name>Seam_Tools_Reference_Guide_(${translation})</name>
<build>
<plugins>
16 years, 10 months
JBoss Tools SVN: r6655 - in trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common: model/ui/navigator/decorator and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-02-29 12:09:51 -0500 (Fri, 29 Feb 2008)
New Revision: 6655
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/OpenEditorWizard.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/navigator/decorator/XModelObjectDecorator.java
Log:
JBIDE-1433 Test added.
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/OpenEditorWizard.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/OpenEditorWizard.java 2008-02-29 17:09:40 UTC (rev 6654)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/OpenEditorWizard.java 2008-02-29 17:09:51 UTC (rev 6655)
@@ -56,7 +56,8 @@
}
if(f == null || !f.exists()) {
ServiceDialog d = object.getModel().getService();
- String message = "The file " + f.getFullPath() + " was removed externally.";
+ Object pathData = f == null ? object.getPath() : f.getFullPath();
+ String message = "The file " + pathData + " was removed externally.";
d.showDialog("Warning", message, new String[]{"Close"}, null, ServiceDialog.WARNING);
object.getModel().update();
return 1;
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/navigator/decorator/XModelObjectDecorator.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/navigator/decorator/XModelObjectDecorator.java 2008-02-29 17:09:40 UTC (rev 6654)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/navigator/decorator/XModelObjectDecorator.java 2008-02-29 17:09:51 UTC (rev 6655)
@@ -120,9 +120,9 @@
String v = value;
if(value == null || value.length() == 0) v = defaultValue;
if(v == null) v = "";
- if(v.indexOf(Variable.NAME.getRuleText()) < 0) {
- if(v.length() > 0) v += " ";
- v += Variable.NAME.getRuleText();
+ if(v.indexOf(RULE_OPENING) < 0) {
+ if(v.length() > 0) v = " " + v;
+ v = Variable.NAME.getRuleText() + v;
}
StringTokenizer s = new StringTokenizer(v, RULE_OPENING + RULE_CLOSING, true);
boolean inVariable = false;
16 years, 10 months
JBoss Tools SVN: r6654 - in trunk/common/tests/org.jboss.tools.common.model.ui.test: src/org/jboss/tools/common/model/ui/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-02-29 12:09:40 -0500 (Fri, 29 Feb 2008)
New Revision: 6654
Added:
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ObjectDecoratorTest.java
Modified:
trunk/common/tests/org.jboss.tools.common.model.ui.test/META-INF/MANIFEST.MF
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java
Log:
JBIDE-1433 Test added.
Modified: trunk/common/tests/org.jboss.tools.common.model.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/META-INF/MANIFEST.MF 2008-02-29 17:09:39 UTC (rev 6653)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/META-INF/MANIFEST.MF 2008-02-29 17:09:40 UTC (rev 6654)
@@ -8,5 +8,7 @@
org.jboss.tools.tests,
org.eclipse.ui,
org.jboss.tools.common,
- org.jboss.tools.common.model.ui
+ org.jboss.tools.common.model.ui,
+ org.jboss.tools.jst.web,
+ org.jboss.tools.jst.web.ui
Export-Package: org.jboss.tools.common.model.ui.test
Modified: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java 2008-02-29 17:09:39 UTC (rev 6653)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java 2008-02-29 17:09:40 UTC (rev 6654)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.common.model.ui.test;
+import junit.framework.Test;
import junit.framework.TestSuite;
/**
@@ -17,9 +18,14 @@
*
*/
public class ModelUiAllTests {
- public static TestSuite suite() {
+ public static final String PLUGIN_ID = "org.jboss.tools.common.model.ui";
+
+ public static Test suite() {
TestSuite suite = new TestSuite();
+ suite.setName("All tests for " + PLUGIN_ID);
suite.addTestSuite(ModelUiPreferencesPageTest.class);
+ suite.addTestSuite(ObjectDecoratorTest.class);
return suite;
}
+
}
Added: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ObjectDecoratorTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ObjectDecoratorTest.java (rev 0)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ObjectDecoratorTest.java 2008-02-29 17:09:40 UTC (rev 6654)
@@ -0,0 +1,44 @@
+package org.jboss.tools.common.model.ui.test;
+
+import java.util.Properties;
+
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.options.PreferenceModelUtilities;
+import org.jboss.tools.common.model.ui.navigator.decorator.DecoratorManager;
+import org.jboss.tools.common.model.ui.navigator.decorator.XModelObjectDecorator;
+
+import junit.framework.TestCase;
+
+public class ObjectDecoratorTest extends TestCase {
+ static String ENTITY = "FileTLD_1_2";
+ static String ATTR_NAME = "name";
+ static String ATTR_DISPLAY = "display-name";
+ static String ATTR_URI = "uri";
+ static String ATTR_SHORTNAME = "shortname";
+
+ String[][] tests = {
+ {"{display-name}", "Taglib File"},
+ {"{name} - {uri}", "taglibFile.tld - http:/a.b.c/d"},
+ {"{name} : {shortname}", "taglibFile.tld : s"},
+ {"{name} -> {short-name}", "taglibFile.tld -> {short-name}"},
+ };
+
+ public void testObjectDecorator() {
+ XModelObject o = PreferenceModelUtilities.getPreferenceModel().createModelObject(ENTITY, new Properties());
+ assertNotNull("Cannot create object for entity " + ENTITY, o);
+ o.setAttributeValue(ATTR_NAME, "taglibFile");
+ o.setAttributeValue(ATTR_DISPLAY, "Taglib File");
+ o.setAttributeValue(ATTR_URI, "http:/a.b.c/d");
+ o.setAttributeValue(ATTR_SHORTNAME, "s");
+
+ XModelObjectDecorator d = DecoratorManager.getInstance().getDecoratorByEntity(ENTITY);
+ assertNotNull("Cannot find decorator for " + ENTITY, d);
+
+ for (int i = 0; i < tests.length; i++) {
+ d.setValue(tests[i][0]);
+ String label = d.getLabel(o);
+ assertEquals("Unexpected label for format " + tests[i][0], tests[i][1], label);
+ }
+ }
+
+}
16 years, 10 months