Bump HSQLDB to 2.9, fix test that assumed count(*) returned int.

This commit is contained in:
Michael Bayne
2013-05-16 18:42:05 +00:00
parent e468e2937a
commit 0c26a26ce0
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -73,7 +73,7 @@
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.2.4</version>
<version>2.2.9</version>
<scope>test</scope>
</dependency>
</dependencies>
@@ -96,9 +96,14 @@ public class ProjectionTest extends TestBase
ewant.add(Tuple2.create("Abraham", 1));
ewant.add(Tuple2.create("Elvis", 2));
ewant.add(Tuple2.create("Moses", 1));
assertEquals(ewant, _repo.from(EnumKeyRecord.class).
groupBy(EnumKeyRecord.NAME).ascending(EnumKeyRecord.NAME).
select(EnumKeyRecord.NAME, Funcs.count(EnumKeyRecord.TYPE)));
List<Tuple2<String, Number>> egot = _repo.from(EnumKeyRecord.class).
groupBy(EnumKeyRecord.NAME).ascending(EnumKeyRecord.NAME).
select(EnumKeyRecord.NAME, Funcs.count(EnumKeyRecord.TYPE));
assertEquals(ewant.size(), egot.size());
for (int ii = 0; ii < ewant.size(); ii++) {
assertEquals(ewant.get(ii).a, egot.get(ii).a);
assertEquals(ewant.get(ii).b.intValue(), egot.get(ii).b.intValue());
}
}
@Test public void testFuncs ()