This commit is contained in:
Spencer Gibb
2017-03-31 14:18:30 -06:00
parent 8c8591cf53
commit 62ef648b59
3 changed files with 15 additions and 5 deletions

View File

@@ -3,7 +3,8 @@ package sample;
import org.junit.Test;
import org.springframework.boot.builder.SpringApplicationBuilder;
import static org.junit.Assert.*;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
public class ApplicationFailFastTests {

View File

@@ -16,8 +16,6 @@
package org.springframework.cloud.config.server.credentials;
import static org.junit.Assert.*;
import java.net.URISyntaxException;
import org.eclipse.jgit.errors.UnsupportedCredentialItem;
@@ -30,6 +28,13 @@ import org.springframework.cloud.config.server.support.GitCredentialsProviderFac
import com.amazonaws.auth.AWSCredentialsProvider;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
/**
* It would be nice to do an integration test, however, this would require
* using real AWS credentials. How can we test the credential generation

View File

@@ -16,8 +16,6 @@
package org.springframework.cloud.config.server.credentials;
import static org.junit.Assert.*;
import org.eclipse.jgit.transport.CredentialsProvider;
import org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider;
import org.junit.Before;
@@ -26,6 +24,12 @@ import org.springframework.cloud.config.server.support.AwsCodeCommitCredentialPr
import org.springframework.cloud.config.server.support.GitCredentialsProviderFactory;
import org.springframework.cloud.config.server.support.PassphraseCredentialsProvider;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
/**
* @author don laidlaw
*