1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package it;
17
18 import com.atlassian.jira.nimblefunctests.annotation.Restore;
19 import com.atlassian.jira.rest.client.domain.Issue;
20 import org.junit.Test;
21
22 import static org.junit.Assert.*;
23
24 @Restore("jira2-export-unassigned.xml")
25 public class JerseyIssueRestClientWithAnonymousThingsJerseyRestClientTest extends AbstractJerseyRestClientTest {
26
27 @Test
28 public void testGetUnassignedIssue() throws Exception {
29 final Issue issue = client.getIssueClient().getIssue("TST-1", pm);
30 assertEquals("TST-1", issue.getKey());
31 assertNull(issue.getAssignee());
32 }
33
34 }