Skip to content

Commit

Permalink
remove descriptor test class
Browse files Browse the repository at this point in the history
  • Loading branch information
bzzitsme committed Dec 18, 2023
1 parent 144b861 commit cb891b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import com.google.api.services.storage.Storage;
import com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement;
import com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials;
import com.google.jenkins.plugins.storage.util.GoogleRobotCredentialsDescriptor;
import com.google.jenkins.plugins.util.MockExecutor;
import com.google.jenkins.plugins.util.NotFoundException;
import hudson.model.FreeStyleBuild;
Expand All @@ -46,9 +45,6 @@ public class ExpiringBucketLifecycleManagerStepTest {

private GoogleCredential credential;

@Mock
private GoogleRobotCredentialsDescriptor.AbstractGoogleRobotCredentialsTestDescriptor descriptor;

private final MockExecutor executor = new MockExecutor();
private NotFoundException notFoundException = new NotFoundException();
private static final String PROJECT_ID = "foo.com:project-build";
Expand All @@ -61,11 +57,8 @@ public class ExpiringBucketLifecycleManagerStepTest {
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);

when(descriptor.getDisplayName()).thenReturn("Credentials Name");

when(credentials.getId()).thenReturn(CREDENTIALS_ID);
when(credentials.getProjectId()).thenReturn(PROJECT_ID);
when(credentials.getDescriptor()).thenReturn(descriptor);

if (jenkins.jenkins != null) {
SystemCredentialsProvider.getInstance().getCredentials().add(credentials);
Expand Down

This file was deleted.

0 comments on commit cb891b8

Please sign in to comment.