* Gets the {@link Item} inside this group that has a given name, or null if it does not exist.
* Gets the {@link Item} inside this group that has a given name, or null if it does not exist.
* @throws AccessDeniedException if the current user has {@link Item#DISCOVER} but not {@link Item#READ} on this item
* @return an item whose {@link Item#getName} is {@code name} and whose {@link Item#getParent} is {@code this}, or null if there is no such item, or there is but the current user lacks both {@link Item#DISCOVER} and {@link Item#READ} on it
assertTrue("Project with null smc should perform checkout without problems.",p.checkout(build,newRemoteLauncher(listener,slave.getChannel(),true),listener,newFile(build.getRootDir(),"changelog.xml")));
assertTrue("Project with null smc should perform checkout without problems.",p.checkout(build,newRemoteLauncher(listener,slave.getChannel(),true),listener,newFile(build.getRootDir(),"changelog.xml")));
@@ -298,8 +297,6 @@ public class JenkinsTest extends HudsonTestCase implements UnprotectedRootAction
...
@@ -298,8 +297,6 @@ public class JenkinsTest extends HudsonTestCase implements UnprotectedRootAction
gmas.add(Jenkins.READ,"bob");
gmas.add(Jenkins.READ,"bob");
gmas.add(Jenkins.ADMINISTER,"charlie");
gmas.add(Jenkins.ADMINISTER,"charlie");
jenkins.setAuthorizationStrategy(gmas);
jenkins.setAuthorizationStrategy(gmas);
// Otherwise get "RuntimeException: Trying to set the request parameters, but the request body has already been specified;the two are mutually exclusive!" from WebRequestSettings.setRequestParameters when POSTing content: