Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SeYeol00 committed Mar 14, 2023
1 parent eedc675 commit 8408f80
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
13 changes: 9 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,20 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compileOnly("org.projectlombok:lombok")
runtimeOnly("com.h2database:h2")
runtimeOnly("com.mysql:mysql-connector-j")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
// testImplementation("org.springframework.security:spring-security-test")

implementation("io.jsonwebtoken:jjwt-api:0.11.2")
implementation("io.jsonwebtoken:jjwt-impl:0.11.2")
implementation("io.jsonwebtoken:jjwt-jackson:0.11.2")
implementation("io.jsonwebtoken:jjwt:0.11.2")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.11.2")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.11.2")


// implementation("io.jsonwebtoken:jjwt-api:0.11.2")
// implementation("io.jsonwebtoken:jjwt-impl:0.11.2")
// implementation("io.jsonwebtoken:jjwt-jackson:0.11.2")
// implementation("io.jsonwebtoken:jjwt:0.11.2")
}

dependencyManagement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.data.jpa.repository.JpaRepository

@SpringBootTest
//@SpringBootTest
class UserTest constructor(
private val userRepository: UserRepository
){

@Test
fun userInsert(){
//given
val user1 = User()
//when
val user = userRepository.save(user1)
//then
assertThat(user.id).isEqualTo(6L)
}
// @Test
// fun userInsert(){
// //given
// val user1 = User()
// //when
// val user = userRepository.save(user1)
// //then
// assertThat(user.id).isEqualTo(6L)
// }
}

0 comments on commit 8408f80

Please sign in to comment.