Skip to content

Commit

Permalink
Bump dependency versions (#35)
Browse files Browse the repository at this point in the history
Using

```
$ mvn versions:use-latest-versions versions:update-properties
```
  • Loading branch information
icmdaf authored Feb 12, 2021
1 parent 8e3e1c1 commit d6e70f7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 18 deletions.
26 changes: 17 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
<configuration>
<source>8</source>
<target>8</target>
<annotationProcessorPaths>
<path>
<groupId>com.google.auto.value</groupId>
<artifactId>auto-value</artifactId>
<version>${auto-value.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -151,50 +158,51 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<auto-value.version>1.7.4</auto-value.version>
</properties>

<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>24.0-jre</version>
<version>30.1-jre</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-testlib</artifactId>
<version>24.0-jre</version>
<version>30.1-jre</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<version>4.13.1</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.1.0</version>
<version>4.2.3</version>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-multibindings</artifactId>
<version>4.1.0</version>
<version>4.2.3</version>
</dependency>
<dependency>
<groupId>com.google.auto.value</groupId>
<artifactId>auto-value</artifactId>
<version>1.5.3</version>
<artifactId>auto-value-annotations</artifactId>
<version>${auto-value.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>0.39</version>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.truth.extensions</groupId>
<artifactId>truth-java8-extension</artifactId>
<version>0.39</version>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/com/google/acai/TestScopeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -77,7 +77,7 @@ public void canCallProviderInServiceSetupAndTeardown() throws Throwable {

assertThat(ValidTestingService.valueFromBeforeTest).isNotNull();
assertThat(ValidTestingService.valueFromAfterTest)
.isSameAs(ValidTestingService.valueFromBeforeTest);
.isSameInstanceAs(ValidTestingService.valueFromBeforeTest);
}

@Test
Expand Down Expand Up @@ -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
Expand All @@ -147,7 +147,7 @@ public void evaluate() throws Throwable {
test)
.evaluate();

assertThat(instanceInMainThread.get()).isSameAs(instanceInChildThread.get());
assertThat(instanceInMainThread.get()).isSameInstanceAs(instanceInChildThread.get());
}

@Test
Expand All @@ -174,7 +174,7 @@ public void evaluate() throws Throwable {
test)
.evaluate();

assertThat(instanceInMainThread.get()).isSameAs(instanceInChildThread.get());
assertThat(instanceInMainThread.get()).isSameInstanceAs(instanceInChildThread.get());
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion version-rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
<ignoreVersions>
<ignoreVersion type="regex">.*-beta\d*</ignoreVersion>
<ignoreVersion type="regex">(?i).*-beta-?\d*</ignoreVersion>
</ignoreVersions>
</ruleset>

0 comments on commit d6e70f7

Please sign in to comment.