Skip to content

Instantly share code, notes, and snippets.

@A-pZ
Created August 6, 2023 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save A-pZ/12e0c05e0a2b28a212d68fd4241a6eb8 to your computer and use it in GitHub Desktop.
Save A-pZ/12e0c05e0a2b28a212d68fd4241a6eb8 to your computer and use it in GitHub Desktop.
Salesforce認証のテスト
package com.github.apz.salesforcesample.repository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import spock.lang.Specification
@SpringBootTest
class SalesforceAuthenticationTest extends Specification {
@Autowired
SalesforceAuthentication sut
def "認証テスト"() {
when:
def authenticationResult = sut.authentication()
then:
noExceptionThrown()
authenticationResult.bearerToken()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment