@@ -44,7 +44,6 @@ class SetupAuthTest {
4444 + File .separator
4545 + "file.json" ;
4646
47-
4847 private ServiceAccountKey createDummyServiceAccount (String privateKey ) {
4948 ServiceAccountCredentials credentials =
5049 new ServiceAccountCredentials ("aud" , "iss" , "kid" , privateKey , "sub" );
@@ -81,7 +80,8 @@ void testGetAccessTokenWithoutRunningInitThrowsException() throws IOException {
8180 @ Test
8281 @ DisplayName ("get access token - with running init - returns interceptor" )
8382 void testGetAccessTokenWithRunningInitReturnsInterceptor () throws IOException {
84- ServiceAccountKey saKey = createDummyServiceAccount (TestUtils .MOCK_SERVICE_ACCOUNT_PRIVATE_KEY );
83+ ServiceAccountKey saKey =
84+ createDummyServiceAccount (TestUtils .MOCK_SERVICE_ACCOUNT_PRIVATE_KEY );
8585 String initSaKeyJson = new Gson ().toJson (saKey );
8686
8787 CoreConfiguration config = new CoreConfiguration ().serviceAccountKey (initSaKeyJson );
@@ -95,7 +95,8 @@ void testGetAccessTokenWithRunningInitReturnsInterceptor() throws IOException {
9595 @ DisplayName ("setup key flow - read service account from path" )
9696 void setupKeyFlowReadServiceAccountFromPath () throws IOException {
9797 // Create service account key file
98- ServiceAccountKey initSaKey = createDummyServiceAccount (TestUtils .MOCK_SERVICE_ACCOUNT_PRIVATE_KEY );
98+ ServiceAccountKey initSaKey =
99+ createDummyServiceAccount (TestUtils .MOCK_SERVICE_ACCOUNT_PRIVATE_KEY );
99100 String initSaKeyJson = new Gson ().toJson (initSaKey );
100101 Path saKeyPath = Files .createTempFile ("serviceAccountKey" , JSON_FILE_EXTENSION );
101102 saKeyPath .toFile ().deleteOnExit ();
@@ -114,7 +115,8 @@ void setupKeyFlowReadServiceAccountFromPath() throws IOException {
114115 @ DisplayName ("setup key flow - read service account from config" )
115116 void setupKeyFlowReadServiceAccountFromConfig () throws IOException {
116117 // Create service account key
117- ServiceAccountKey initSaKey = createDummyServiceAccount (TestUtils .MOCK_SERVICE_ACCOUNT_PRIVATE_KEY );
118+ ServiceAccountKey initSaKey =
119+ createDummyServiceAccount (TestUtils .MOCK_SERVICE_ACCOUNT_PRIVATE_KEY );
118120 String initSaKeyJson = new Gson ().toJson (initSaKey );
119121
120122 // Create config and read setup auth with the previous created saKey
@@ -128,7 +130,8 @@ void setupKeyFlowReadServiceAccountFromConfig() throws IOException {
128130 @ DisplayName ("setup key flow - read service account from key env" )
129131 void setupKeyFlowReadServiceAccountFromKeyEnv () throws IOException {
130132 // Create service account key
131- ServiceAccountKey initSaKey = createDummyServiceAccount (TestUtils .MOCK_SERVICE_ACCOUNT_PRIVATE_KEY );
133+ ServiceAccountKey initSaKey =
134+ createDummyServiceAccount (TestUtils .MOCK_SERVICE_ACCOUNT_PRIVATE_KEY );
132135 String initSaKeyJson = new Gson ().toJson (initSaKey );
133136
134137 // Mock env STACKIT_SERVICE_ACCOUNT_KEY
@@ -236,7 +239,7 @@ void loadPrivateKeyDoesNotOverwriteExistingPrivateKey() {
236239
237240 @ Test
238241 @ DisplayName ("load private key - set private key path" )
239- void loadPrivateKeySetPrivateKeyPath () throws IOException {
242+ void loadPrivateKeySetPrivateKeyPath () throws IOException {
240243 Path tempPrvKeyFile = Files .createTempFile ("privateKey" , ".pem" );
241244 tempPrvKeyFile .toFile ().deleteOnExit ();
242245
0 commit comments