From d6e70f79876e1636f71ceb1c4ac137ce74826f65 Mon Sep 17 00:00:00 2001 From: icmdaf Date: Fri, 12 Feb 2021 16:06:18 +0000 Subject: [PATCH] Bump dependency versions (#35) Using ``` $ mvn versions:use-latest-versions versions:update-properties ``` --- pom.xml | 26 ++++++++++++------- .../GuiceberryCompatibilityModuleTest.java | 4 +-- .../java/com/google/acai/TestScopeTest.java | 12 ++++----- version-rules.xml | 2 +- 4 files changed, 26 insertions(+), 18 deletions(-) diff --git a/pom.xml b/pom.xml index e555cb7..8f470ee 100644 --- a/pom.xml +++ b/pom.xml @@ -67,6 +67,13 @@ 8 8 + + + com.google.auto.value + auto-value + ${auto-value.version} + + @@ -151,50 +158,51 @@ UTF-8 + 1.7.4 com.google.guava guava - 24.0-jre + 30.1-jre com.google.guava guava-testlib - 24.0-jre + 30.1-jre junit junit - 4.12 + 4.13.1 com.google.inject guice - 4.1.0 + 4.2.3 com.google.inject.extensions guice-multibindings - 4.1.0 + 4.2.3 com.google.auto.value - auto-value - 1.5.3 + auto-value-annotations + ${auto-value.version} provided com.google.truth truth - 0.39 + 1.1.2 test com.google.truth.extensions truth-java8-extension - 0.39 + 1.1.2 test diff --git a/src/test/java/com/google/acai/GuiceberryCompatibilityModuleTest.java b/src/test/java/com/google/acai/GuiceberryCompatibilityModuleTest.java index 282b523..47855f0 100644 --- a/src/test/java/com/google/acai/GuiceberryCompatibilityModuleTest.java +++ b/src/test/java/com/google/acai/GuiceberryCompatibilityModuleTest.java @@ -54,7 +54,7 @@ public void sameInstanceInjectedWithinTest() throws Throwable { .evaluate(); assertThat(test.instanceOne).isNotNull(); - assertThat(test.instanceTwo).isSameAs(test.instanceOne); + assertThat(test.instanceTwo).isSameInstanceAs(test.instanceOne); } @Test @@ -69,7 +69,7 @@ public void differentInstanceInjectedAcrossTests() throws Throwable { .apply(statement, frameworkMethod, testTwo) .evaluate(); - assertThat(testOne.instanceOne).isNotSameAs(testTwo.instanceOne); + assertThat(testOne.instanceOne).isNotSameInstanceAs(testTwo.instanceOne); } @Test diff --git a/src/test/java/com/google/acai/TestScopeTest.java b/src/test/java/com/google/acai/TestScopeTest.java index b381db9..d06d6c3 100644 --- a/src/test/java/com/google/acai/TestScopeTest.java +++ b/src/test/java/com/google/acai/TestScopeTest.java @@ -46,7 +46,7 @@ public void sameInstanceInjectedWithinTest() throws Throwable { new Acai(EmptyTestModule.class).apply(statement, frameworkMethod, test).evaluate(); assertThat(test.instanceOne).isNotNull(); - assertThat(test.instanceTwo).isSameAs(test.instanceOne); + assertThat(test.instanceTwo).isSameInstanceAs(test.instanceOne); } @Test @@ -57,7 +57,7 @@ public void differentInstanceInjectedAcrossTests() throws Throwable { new Acai(EmptyTestModule.class).apply(statement, frameworkMethod, testOne).evaluate(); new Acai(EmptyTestModule.class).apply(statement, frameworkMethod, testTwo).evaluate(); - assertThat(testOne.instanceOne).isNotSameAs(testTwo.instanceOne); + assertThat(testOne.instanceOne).isNotSameInstanceAs(testTwo.instanceOne); } @Test @@ -77,7 +77,7 @@ public void canCallProviderInServiceSetupAndTeardown() throws Throwable { assertThat(ValidTestingService.valueFromBeforeTest).isNotNull(); assertThat(ValidTestingService.valueFromAfterTest) - .isSameAs(ValidTestingService.valueFromBeforeTest); + .isSameInstanceAs(ValidTestingService.valueFromBeforeTest); } @Test @@ -120,7 +120,7 @@ public void evaluate() throws Throwable { assertThat(testOne.instanceOne).isNotNull(); assertThat(testOne.instanceOne).isNotNull(); - assertThat(testOne.instanceOne).isNotSameAs(testTwo.instanceOne); + assertThat(testOne.instanceOne).isNotSameInstanceAs(testTwo.instanceOne); } @Test @@ -147,7 +147,7 @@ public void evaluate() throws Throwable { test) .evaluate(); - assertThat(instanceInMainThread.get()).isSameAs(instanceInChildThread.get()); + assertThat(instanceInMainThread.get()).isSameInstanceAs(instanceInChildThread.get()); } @Test @@ -174,7 +174,7 @@ public void evaluate() throws Throwable { test) .evaluate(); - assertThat(instanceInMainThread.get()).isSameAs(instanceInChildThread.get()); + assertThat(instanceInMainThread.get()).isSameInstanceAs(instanceInChildThread.get()); } @Test diff --git a/version-rules.xml b/version-rules.xml index 28638c3..c28f16f 100644 --- a/version-rules.xml +++ b/version-rules.xml @@ -19,6 +19,6 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd"> - .*-beta\d* + (?i).*-beta-?\d*