| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.base.Services; |
||
| 11 | public class ThreadServiceTest extends AbstractBaseTest { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Test case for Create Team |
||
| 15 | * |
||
| 16 | * @throws BaseHttpException |
||
| 17 | */ |
||
| 18 | @Test |
||
| 19 | public void testTeamCreate() { |
||
| 20 | try { |
||
| 21 | Thread thread = this.base.threadService().addChannelThread(CreateChannelThreadResponse.VALID_TEAM_SLUG, |
||
| 22 | CreateChannelThreadResponse.VALID_CHANNEL_SLUG, |
||
| 23 | CreateChannelThreadResponse.VALID_SUBJECT, |
||
| 24 | CreateChannelThreadResponse.VALID_DESCRIPTION); |
||
| 25 | Assert.assertEquals(thread.getSubject(), CreateChannelThreadResponse.VALID_SUBJECT); |
||
| 26 | Assert.assertEquals(thread.getDescription(), CreateChannelThreadResponse.VALID_DESCRIPTION); |
||
| 27 | Assert.assertEquals(thread.getId(), CreateChannelThreadResponse.VALID_ID); |
||
| 28 | } catch (BaseHttpException | ChannelNotFound e) { |
||
| 29 | Assert.fail(e.getMessage()); |
||
| 30 | } |
||
| 34 |