Package org.hive2hive.core.model

Examples of org.hive2hive.core.model.FileIndex.canWrite()


    Assert.assertTrue(indexB.isShared());

    // check write access
    Assert.assertTrue(indexA.canWrite());
    // user B isn't allowed to write
    Assert.assertFalse(indexB.canWrite());

    // check if md5 hash is the same
    Assert.assertTrue(Arrays.equals(indexA.getMD5(), md5Hash));
    Assert.assertTrue(Arrays.equals(indexB.getMD5(), md5Hash));
View Full Code Here


    Assert.assertTrue(indexA.isShared());
    Assert.assertTrue(indexB.isShared());

    // check write access
    Assert.assertTrue(indexA.canWrite());
    Assert.assertTrue(indexB.canWrite());

    // check user permissions at A
    Set<String> usersA = indexA.getCalculatedUserList();
    Assert.assertEquals(2, usersA.size());
    Assert.assertTrue(usersA.contains(userA.getUserId()));
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.