File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/com/cloudbees/jenkins/plugins/bitbucket/endpoints Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3030import com .cloudbees .plugins .credentials .SystemCredentialsProvider ;
3131import com .cloudbees .plugins .credentials .domains .Domain ;
3232import com .cloudbees .plugins .credentials .impl .UsernamePasswordCredentialsImpl ;
33- import com .google .common .io .Files ;
3433import com .google .common .io .Resources ;
3534import hudson .XmlFile ;
3635import hudson .security .ACL ;
4544import java .util .Collections ;
4645import java .util .List ;
4746import jenkins .model .Jenkins ;
47+ import org .apache .commons .io .FileUtils ;
4848import org .junit .Before ;
4949import org .junit .ClassRule ;
5050import org .junit .Test ;
@@ -634,7 +634,7 @@ public void given__instanceWithConfig__when__configRoundtrip__then__configRetain
634634 public void given__serverConfig__without__webhookImplementation__then__usePlugin () throws Exception {
635635 final URL configWithoutWebhookImpl = Resources .getResource (getClass (), "config-without-webhook-impl.xml" );
636636 final File configFile = new File (Jenkins .get ().getRootDir (), BitbucketEndpointConfiguration .class .getName () + ".xml" );
637- Files . copy ( Resources . newInputStreamSupplier ( configWithoutWebhookImpl ) , configFile );
637+ FileUtils . copyURLToFile ( configWithoutWebhookImpl , configFile );
638638
639639 final BitbucketEndpointConfiguration instance = new BitbucketEndpointConfiguration ();
640640
You can’t perform that action at this time.
0 commit comments