Author: vrubezhny
Date: 2011-09-15 17:17:40 -0400 (Thu, 15 Sep 2011)
New Revision: 34787
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.text.ext.test/src/org/jboss/tools/cdi/seam/text/ext/test/SeamResourceBundleHyperlinkTest.java
Log:
JBIDE-9288
Open On for bundle messages doesn't work for CDI projects with International Module
enabled
JUnit test is added.
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.text.ext.test/src/org/jboss/tools/cdi/seam/text/ext/test/SeamResourceBundleHyperlinkTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam.text.ext.test/src/org/jboss/tools/cdi/seam/text/ext/test/SeamResourceBundleHyperlinkTest.java 2011-09-15
19:31:29 UTC (rev 34786)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam.text.ext.test/src/org/jboss/tools/cdi/seam/text/ext/test/SeamResourceBundleHyperlinkTest.java 2011-09-15
21:17:40 UTC (rev 34787)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
package org.jboss.tools.cdi.seam.text.ext.test;
import java.util.ArrayList;
@@ -7,6 +17,11 @@
import org.jboss.tools.cdi.text.ext.test.CDIHyperlinkTestUtil;
import org.jboss.tools.jst.text.ext.hyperlink.ELHyperlink;
+/**
+ * The JUnit test cases for JBIDE-9288 issue
+ *
+ * @author Victor Rubezhny
+ */
public class SeamResourceBundleHyperlinkTest extends SeamCoreTest {
private static final String PAGE_NAME =
"WebContent/seam-international.xhtml";
@@ -14,7 +29,7 @@
* The test case finds the hyperlinks for bundle property and checks that there are only
Messages Hyperlinks
* @throws Exception
*/
- public void testCDIInternationalMessagesHyperLink () throws Exception {
+ public void testSeamResourceBundleHyperlink () throws Exception {
ArrayList<CDIHyperlinkTestUtil.TestRegion> regionList = new
ArrayList<CDIHyperlinkTestUtil.TestRegion>();
regionList.add(new CDIHyperlinkTestUtil.TestRegion(398, 11,
new CDIHyperlinkTestUtil.TestHyperlink[]{new
CDIHyperlinkTestUtil.TestHyperlink(ELHyperlink.class, "Open property
'home_header' of bundle 'messages'",
"messages.properties")}));
@@ -35,7 +50,4 @@
CDIHyperlinkTestUtil.checkTestRegion(hyperlinks, testRegion);
}
}
-
-
-
}
\ No newline at end of file