We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
โจ add rest docs and swagger ui for category testย #102
โจ implement refresh tokenย #113
102๋ฒ pr์์ ํ๋ผ๊ณ ํ ๋ชจ๋ ์์ ์ ํด์ฃผ์์ง๋ง ๋ฌธ์๊ฐ ๋ง๋ค์ด ์ง์ง ์์ต๋๋ค.
@Sql("/data/users.sql") class LoginControllerTest extends RestDocsSetting { @MockBean private FirebaseAuth firebaseAuth; @Autowired private JwtTokenManager jwtTokenManager; @Test @DisplayName("์ด๋ฏธ ๊ฐ์ ๋ ๊ณ์ ์ผ๋ก ๋ก๊ทธ์ธํ๋ฉด ์ด๋ฏธ ๊ฐ์ ๋์๋ค๊ณ ์๋ฆฌ๊ณ access token๊ณผ refresh token์ ๋ฐํํ๋ค.") void loginWithGoogleWithEmailAlreadyRegistered() throws FirebaseAuthException { String email = "[email protected]"; String idToken = "test.id.token"; FirebaseToken firebaseToken = mock(FirebaseToken.class); when(firebaseToken.getEmail()).thenReturn(email); when(firebaseAuth.verifyIdToken(idToken)).thenReturn(firebaseToken); GoogleLoginResponse actual = RestAssured.given(spec).log().all() .filter(document(DEFAULT_RESTDOCS_PATH, requestFields( fieldWithPath("idToken").description("Google ID Token") ), responseFields( fieldWithPath("accessToken").description("JWT Access Token"), fieldWithPath("refreshToken").description("JWT Refresh Token"), fieldWithPath("registered").description("์ฌ์ฉ์ ๋ฑ๋ก ์ฌ๋ถ") ) )) .contentType(ContentType.JSON) .body(new GoogleLoginRequest(idToken)) .when().post("/api/oauth/google/login") .then().log().all() .statusCode(200) .extract() .as(GoogleLoginResponse.class); assertAll( () -> assertThat(actual.accessToken()).isNotNull(), () -> assertThat(actual.refreshToken()).isNotNull(), () -> assertThat(actual.registered()).isTrue() ); } ...
The text was updated successfully, but these errors were encountered:
์์ธ ์ฐพ์์ต๋๋ค. document๋ฅผ static import ํ ๋ ์ฃผ์ํด์ผ ํฉ๋๋ค. org.springframework.restdocs.restassured.RestAssuredRestDocumentation.document ๋ฐ์ผ๋ฉด ์๋ฉ๋๋ค. com.epages.restdocs.apispec.RestAssuredRestDocumentationWrapper.document ์ํฌํธ ํด์ผํฉ๋๋ค.
org.springframework.restdocs.restassured.RestAssuredRestDocumentation.document
com.epages.restdocs.apispec.RestAssuredRestDocumentationWrapper.document
import static com.epages.restdocs.apispec.RestAssuredRestDocumentationWrapper.document;
๊ผญ ์ด๊ฑฐ import ํ์ธ์.
Sorry, something went wrong.
geoje
HaiSeong
hyxrxn
No branches or pull requests
โจ add rest docs and swagger ui for category testย #102
โจ implement refresh tokenย #113
102๋ฒ pr์์ ํ๋ผ๊ณ ํ ๋ชจ๋ ์์ ์ ํด์ฃผ์์ง๋ง ๋ฌธ์๊ฐ ๋ง๋ค์ด ์ง์ง ์์ต๋๋ค.
The text was updated successfully, but these errors were encountered: