Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-34877] Fix typos
  • Loading branch information
armfergom committed May 18, 2016
1 parent 0eb953a commit b613c48
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -42,14 +42,14 @@ public class BaseTest {

@Before
public void setup(){
store = CredentialsProvider.lookupStores(r.jenkins).iterator().next();;
store = CredentialsProvider.lookupStores(r.jenkins).iterator().next();
}

@Test
public void secretTextBaseTest() throws IOException {
StringCredentialsImpl credential = new StringCredentialsImpl(CredentialsScope.GLOBAL, CRED_ID, "Test Secret Text", Secret.fromString("password"));
StringCredentialsImpl updatedCredential = new StringCredentialsImpl(credential.getScope(), UPDATED_CRED_ID, credential.getDescription(), credential.getSecret());
testCreateUpdateDetele(credential, updatedCredential);
testCreateUpdateDelete(credential, updatedCredential);
}

@Test
Expand All @@ -58,7 +58,7 @@ public void secretFileBaseTest() throws IOException, URISyntaxException {

FileCredentialsImpl credential = new FileCredentialsImpl(CredentialsScope.GLOBAL, CRED_ID, "Test Secret file", fileItem, "keys.txt", Base64.encode(fileItem.get()).toString());
FileCredentialsImpl updatedCredential = new FileCredentialsImpl(credential.getScope(), UPDATED_CRED_ID, credential.getDescription(), fileItem, credential.getFileName(), credential.getData());
testCreateUpdateDetele(credential, updatedCredential);
testCreateUpdateDelete(credential, updatedCredential);
}

/**
Expand All @@ -68,7 +68,7 @@ public void secretFileBaseTest() throws IOException, URISyntaxException {
* @param updatedCredential the credential that will replace the first one during update
* @throws IOException
*/
private <T extends BaseStandardCredentials> void testCreateUpdateDetele(T credential, T updatedCredential) throws IOException {
private <T extends BaseStandardCredentials> void testCreateUpdateDelete(T credential, T updatedCredential) throws IOException {
// Add a credential
store.addCredentials(Domain.global(), credential);

Expand Down

0 comments on commit b613c48

Please sign in to comment.