refactor: header -> accessHeader 네이밍 변경

This commit is contained in:
dongHyo
2022-05-31 19:44:32 +09:00
parent 9fea91e887
commit eed262f54a
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ import org.springframework.context.annotation.PropertySource;
@PropertySource(value = "classpath:application.yml", factory = YamlPropertySourceFactory.class)
public class JwtProperties {
private final String header;
private final String accessHeader;
private final String prefix;
private final String secretKey;
private final Integer tokenValidityInSeconds;

View File

@@ -27,7 +27,7 @@ class JwtPropertiesTest {
// when
// then
assertAll(
() -> assertThat(jwtProperties.getHeader()).isEqualTo("Authorization")
() -> assertThat(jwtProperties.getAccessHeader()).isEqualTo("ACCESS_TOKEN")
, () -> assertThat(jwtProperties.getPrefix()).isEqualTo("Bearer")
, () -> assertThat(jwtProperties.getTokenValidityInSeconds()).isEqualTo(86400)
, () -> assertThat(jwtProperties.getSecretKey()).isNotEmpty());