Lines Matching refs:Permissions
21 * Tests for the Permissions class
55 assert new Permissions('rwxrwxrwx').hashCode() == Permissions.DEFAULT.hashCode()
56 assert new Permissions('---------').hashCode() == Permissions.NONE.hashCode()
60 assert new Permissions('rwxrwxrwx').equals(Permissions.DEFAULT)
61 assert new Permissions('---------').equals(Permissions.NONE)
62 assert Permissions.NONE.equals(Permissions.NONE)
64 assert !(new Permissions('------rwx').equals(Permissions.NONE))
65 assert !Permissions.NONE.equals(null)
66 assert !Permissions.NONE.equals(123)
78 def permissions = new Permissions(rwxString)
93 shouldFail { new Permissions(string) }
98 def permissions = new Permissions(string)