Skip to content

Commit

Permalink
chore: update to truth 1.3.0
Browse files Browse the repository at this point in the history
we no longer need to depend on truth-java8-extension
  • Loading branch information
Citymonstret committed Jan 20, 2024
1 parent 6a319ed commit 7b13e1b
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import org.junit.jupiter.api.Test;

import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth8.assertThat;

class StringProcessingTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
import static cloud.commandframework.arguments.standard.StringParser.stringParser;
import static cloud.commandframework.util.TestUtils.createManager;
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth8.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.notNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import org.junit.jupiter.api.Test;

import static cloud.commandframework.util.TestUtils.createManager;
import static com.google.common.truth.Truth8.assertThat;
import static com.google.common.truth.Truth.assertThat;

class ParameterInjectorRegistryTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import org.junit.jupiter.api.Test;

import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth8.assertThat;

public class ParserRegistryTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import static cloud.commandframework.arguments.standard.StringParser.stringParser;
import static cloud.commandframework.util.TestUtils.createManager;
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth8.assertThat;

class StandardHelpHandlerTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

import static cloud.commandframework.arguments.standard.StringArrayParser.flagYieldingStringArrayParser;
import static cloud.commandframework.util.TestUtils.createManager;
import static com.google.common.truth.Truth8.assertThat;
import static com.google.common.truth.Truth.assertThat;

/**
* Test for https://github.com/Incendo/cloud/issues/321.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import static cloud.commandframework.keys.CloudKey.cloudKey;
import static cloud.commandframework.util.TestUtils.createManager;
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth8.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;

/**
Expand Down
4 changes: 1 addition & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jupiterEngine = "5.10.1"
mockitoCore = "4.11.0"
mockitoKotlin = "4.1.0"
mockitoJupiter = "4.11.0"
truth = "1.2.0"
truth = "1.3.0"
compileTesting = "0.21.0"

# build-logic
Expand Down Expand Up @@ -67,7 +67,6 @@ mockitoCore = { group = "org.mockito", name = "mockito-core", version.ref = "moc
mockitoKotlin = { group = "org.mockito.kotlin", name = "mockito-kotlin", version.ref = "mockitoKotlin" }
mockitoJupiter = { group = "org.mockito", name = "mockito-junit-jupiter", version.ref = "mockitoJupiter" }
truth = { group = "com.google.truth", name = "truth", version.ref = "truth" }
truthJava8 = { group = "com.google.truth.extensions", name = "truth-java8-extension", version.ref = "truth" }
compileTesting = { group = "com.google.testing.compile", name = "compile-testing", version.ref = "compileTesting" }

# build-logic
Expand All @@ -88,5 +87,4 @@ baseTestingDependencies = [
"mockitoKotlin",
"mockitoJupiter",
"truth",
"truthJava8",
]

0 comments on commit 7b13e1b

Please sign in to comment.