Examples of listRooms()


Examples of com.github.hipchat.api.HipChat.listRooms()

    @Test
    public void testListRooms()
    {
        HipChat hipchat = new HipChat(HIPCHAT_KEY);
        List<Room> rooms = hipchat.listRooms();
        assertNotNull(rooms);
        assertFalse(rooms.isEmpty());
    }

    @Test
View Full Code Here

Examples of com.github.hipchat.api.HipChat.listRooms()

    @Test
    public void testCreateAndDeleteRooms()
    {
        HipChat hipchat = new HipChat(HIPCHAT_KEY);

        List<Room> roomsBefore = hipchat.listRooms();
        int countBeforeOp = roomsBefore.size();

        Room room = null;
        try
        {
View Full Code Here

Examples of com.github.hipchat.api.HipChat.listRooms()

            fail("Exception!");
        }
        assertNotNull(room);
        assertEquals(TEST_ROOM_NAME, room.getName());

        List<Room> roomsAfterAdd = hipchat.listRooms();
        int countAfterOp = roomsAfterAdd.size();
        assertEquals(countBeforeOp + 1, countAfterOp);

        boolean deleted = hipchat.deleteRoom(room.getId());
        assertTrue(deleted);
View Full Code Here

Examples of com.github.hipchat.api.HipChat.listRooms()

        assertEquals(countBeforeOp + 1, countAfterOp);

        boolean deleted = hipchat.deleteRoom(room.getId());
        assertTrue(deleted);

        List<Room> roomsAfterDelete = hipchat.listRooms();
        int countAfterOp2 = roomsAfterDelete.size();
        assertEquals(countBeforeOp, countAfterOp2);
    }

    @Test
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.