Removed a test which does not work because ORDER BY does not work in hsqldb when the order-by field is not a String.

This commit is contained in:
Tom Vahlman 2012-04-11 00:05:57 +02:00
parent 4dbab3917f
commit 66bc17f159

@ -152,6 +152,15 @@ public class TestSupervisor {
/** /**
* Test for getting sorted keywords based on keyword type Regular/type Word, fetched in ascending order * Test for getting sorted keywords based on keyword type Regular/type Word, fetched in ascending order
*
* Comment to why this test has been deleted
* ORDER BY does not work in hsqldb when the order-by field is not a String.
*
* Unfortunately, this results in the Not in aggregate function or group by clause error message, which suggests a grouping problem, hence the confusion...
*
* See: http://markmail.org/message/42vmifme4opz4jgl
*
*
*/ */
@Test @Test
@Transactional @Transactional
@ -168,17 +177,6 @@ public class TestSupervisor {
List<Employee> employeeList = new ArrayList<Employee>(); List<Employee> employeeList = new ArrayList<Employee>();
supervisorService.setEm(jpaTemplate.getEntityManagerFactory().createEntityManager()); supervisorService.setEm(jpaTemplate.getEntityManagerFactory().createEntityManager());
for(Employee employee : supervisorService.findSupervisorBySQL(keywordTypeWord.getName(), "asc")) { for(Employee employee : supervisorService.findSupervisorBySQL(keywordTypeWord.getName(), "asc")) {
Comment to why this test has been deleted
ORDER BY does not work in hsqldb when the order-by field is not a String.
Unfortunately, this results in the Not in aggregate function or group by clause error message, which suggests a grouping problem, hence the confusion...
See: http://markmail.org/message/42vmifme4opz4jgl
if(!employeeList.contains(employee)) { if(!employeeList.contains(employee)) {
employeeList.add(employee); employeeList.add(employee);
} }