View Javadoc

1   package it;
2   
3   import com.atlassian.jira.nimblefunctests.framework.NimbleFuncTestCase;
4   import com.atlassian.jira.rest.client.IntegrationTestUtil;
5   import com.atlassian.jira.rest.client.internal.json.TestConstants;
6   import com.atlassian.jira.testkit.client.Backdoor;
7   import com.atlassian.jira.testkit.client.util.TestKitLocalEnvironmentData;
8   import org.junit.Ignore;
9   import org.junit.Test;
10  
11  public class RestoreDataDevHelperButNotRealTest extends NimbleFuncTestCase {
12  
13      private final Backdoor backdoor = new Backdoor(new TestKitLocalEnvironmentData());
14  
15      @Ignore // test disabled on CI, enable before use
16      @Test
17      public void restoreDataForUnitTests() throws Exception {
18          IntegrationTestUtil.restoreAppropriateJiraData(TestConstants.DATA_FOR_UNIT_TESTS_FILE, administration);
19      }
20  
21      @Ignore // test disabled on CI, enable before use
22      @Test
23      public void restoreDataWithFilters() throws Exception {
24          IntegrationTestUtil.restoreAppropriateJiraData(TestConstants.JIRA_DUMP_WITH_FILTERS_FILE, administration);
25      }
26  
27      @Ignore // test disabled on CI, enable before use
28      @Test
29      public void restoreDataForCreatingIssueTests() throws Exception {
30          IntegrationTestUtil.restoreAppropriateJiraData(TestConstants.JIRA_DUMP_CREATING_ISSUE_TESTS_FILE, administration);
31      }
32  }