/** * Returns the "canonical string representation" of the actions. * That is, this method always returns present actions in the following order: * read, write. For example, if this PropertyPermission object * allows both write and read actions, a call to <code>getActions</code> * will return the string "read,write". * * @return the canonical string representation of the actions. */ public String getActions() { if (actions == null) actions= getActions(this.mask); return actions; }
private static boolean isPropertyAccess(final Permission perm) { if (!(perm instanceof PropertyPermission)) { return false; } final PropertyPermission propertyPermission = (PropertyPermission) perm; return propertyPermission.getActions().equals("read"); }
protected boolean checkPropertyPermission(PropertyPermission perm) { /* * TODO: this will need to be removed once REPLACE_CALLS * will be on by default */ if (perm.getName().equals("sun.font.fontmanager")) { return true; } if(perm.getActions().contains("write") && !executingTestCase) { if(org.evosuite.runtime.System.isSystemProperty(perm.getName())) { return false; } else { return true; } } return org.evosuite.runtime.System.handlePropertyPermission(perm); }
if (perm.getActions().contains("write")) {
String actions = p.getActions();