Created
August 6, 2023 07:53
-
-
Save A-pZ/12e0c05e0a2b28a212d68fd4241a6eb8 to your computer and use it in GitHub Desktop.
Salesforce認証のテスト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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