# HG changeset patch # User ymh # Date 1366805299 -7200 # Node ID fdc74162bef1f8ab5b39fb207a9ce9a8c0b990e1 # Parent a282eebbc5e0c03e8de8ca41e4e59b5ac2e0decb correct tests on count by user for projects diff -r a282eebbc5e0 -r fdc74162bef1 server/src/test/java/org/iri_research/renkan/test/repositories/ProjectsRepositoryTest.java --- a/server/src/test/java/org/iri_research/renkan/test/repositories/ProjectsRepositoryTest.java Tue Apr 23 16:54:18 2013 +0200 +++ b/server/src/test/java/org/iri_research/renkan/test/repositories/ProjectsRepositoryTest.java Wed Apr 24 14:08:19 2013 +0200 @@ -92,7 +92,7 @@ logger.debug("Setup"); // CREATE USERS - for(int i=0; i groupRes = projectsRepository.getCountByUser(); + int nu = this.testUsers.size(); Assert.assertNotNull("GroupRes not null", groupRes); - Assert.assertEquals("Group res size", testProjects.size()+1, groupRes.size()); + Assert.assertEquals("Group res size", nu, groupRes.size()); - for(int i=0;i