Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion gradle/libraries.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ okhttp3 = "4.11.0"
[libraries]
retrofit2-retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit2" }
retrofit2-converter-jackson = { module = "com.squareup.retrofit2:converter-jackson", version.ref = "retrofit2" }
guava = { group = "com.google.guava", name = "guava", version = "32.1.1-jre" }
system-lambda = { group = "com.github.stefanbirkner", name = "system-lambda", version = "1.2.1" }
jjwt-api = { module = "io.jsonwebtoken:jjwt-api", version.ref = "jjwt" }
jjwt-impl = { module = "io.jsonwebtoken:jjwt-impl", version.ref = "jjwt" }
Expand Down
1 change: 0 additions & 1 deletion line-bot-parser/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ dependencies {
implementation(libs.jackson.databind)
implementation(libs.slf4j.api)

testImplementation(libs.guava)
testImplementation(libs.bundles.tests)
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;

import com.google.common.io.ByteStreams;

import com.linecorp.bot.webhook.model.CallbackRequest;
import com.linecorp.bot.webhook.model.Event;
import com.linecorp.bot.webhook.model.MessageEvent;
Expand Down Expand Up @@ -88,7 +86,7 @@ public void testNullRequest() {
public void testCallRequest() throws Exception {
final InputStream resource = getClass().getClassLoader().getResourceAsStream(
"callback-request.json");
final byte[] payload = ByteStreams.toByteArray(resource);
final byte[] payload = resource.readAllBytes();

when(signatureValidator.validateSignature(payload, "SSSSIGNATURE")).thenReturn(true);

Expand Down