Author: vyemialyanchyk
Date: 2010-03-16 14:50:31 -0400 (Tue, 16 Mar 2010)
New Revision: 20855
Added:
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/
Modified:
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6070 - initial step
Copied:
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test
(from rev 20798, trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test)
Modified:
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java 2010-03-12
13:16:53 UTC (rev 20798)
+++
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java 2010-03-16
18:50:31 UTC (rev 20855)
@@ -1,6 +1,6 @@
package org.hibernate.eclipse.jdt.ui.test;
-import org.hibernate.eclipse.jdt.ui.internal.ELTransformer;
+import org.hibernate.console.util.ELTransformer;
import junit.framework.TestCase;
Modified:
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java 2010-03-12
13:16:53 UTC (rev 20798)
+++
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java 2010-03-16
18:50:31 UTC (rev 20855)
@@ -165,19 +165,19 @@
public void testCheckQueryEL() {
- HQLDetector.checkQuery(ccfg, "from java.lang.Object", false); //$NON-NLS-1$
- HQLDetector.checkQuery(ccfg, "from TestClass", false); //$NON-NLS-1$
+ ccfg.checkQuery("from java.lang.Object", false); //$NON-NLS-1$
+ ccfg.checkQuery("from TestClass", false); //$NON-NLS-1$
try {
- HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field}",
false); //$NON-NLS-1$
- fail("should have failed with EL expressions!"); //$NON-NLS-1$
+ ccfg.checkQuery("from TestClass where id = #{some.id.field}", false);
//$NON-NLS-1$
+ fail("should have failed with EL expressions!"); //$NON-NLS-1$
} catch (HibernateException he) {
// ok
}
- HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field}",
true); //$NON-NLS-1$
- HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field=}",
true); //$NON-NLS-1$
- HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id and
field=}", true); //$NON-NLS-1$
+ ccfg.checkQuery("from TestClass where id = #{some.id.field}", true);
//$NON-NLS-1$
+ ccfg.checkQuery("from TestClass where id = #{some.id.field=}", true);
//$NON-NLS-1$
+ ccfg.checkQuery("from TestClass where id = #{some.id and field=}", true);
//$NON-NLS-1$
}