Exemplo n.º 1
0
 @Before
 public void before() {
   RestHelper.createUser(
       TEST_USERNAME, TEST_PASSWORD, TEST_USERNAME, "lastname1", "company1", "email1", "members");
   String wsId = RestHelper.createDocument(WORKSPACES_PATH, WORKSPACE_TYPE, WORKSPACE_TITLE, null);
   fileId = RestHelper.createDocument(wsId, FILE_TYPE, TEST_FILE_TITLE, null);
   RestHelper.addPermission(wsId, TEST_USERNAME, "Everything");
 }
Exemplo n.º 2
0
 @After
 public void after() {
   RestHelper.cleanup();
   fileId = null;
 }