]> source.dussan.org Git - gitblit.git/commitdiff
Fixed federation unit test
authorJames Moger <james.moger@gitblit.com>
Tue, 2 Jul 2013 18:59:39 +0000 (14:59 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 2 Jul 2013 18:59:39 +0000 (14:59 -0400)
src/test/java/com/gitblit/tests/FederationTests.java

index ced500a5636ed78962840d0f98aa3bfe153c8b69..8475ffebe7d79d9bf56e462c3a3a44503d6bd296 100644 (file)
@@ -152,9 +152,16 @@ public class FederationTests {
 \r
        @Test\r
        public void testPullTeams() throws Exception {\r
+               TeamModel team = new TeamModel("testteam");\r
+               team.addUser("test");\r
+               team.addRepositoryPermission("helloworld.git");\r
+               assertTrue(RpcUtils.createTeam(team, url, account, password.toCharArray()));\r
+               \r
                List<TeamModel> teams = FederationUtils.getTeams(getRegistration());\r
                assertNotNull(teams);\r
                assertTrue(teams.size() > 0);\r
+               \r
+               assertTrue(RpcUtils.deleteTeam(team, url, account, password.toCharArray()));\r
        }\r
        \r
        @Test\r