Skip to content

Commit

Permalink
Using the latest version of truth (#4597)
Browse files Browse the repository at this point in the history
* Using a much newer version of truth

* Upgrading annotations in google-api-grpc
  • Loading branch information
sduskis committed Mar 1, 2019
1 parent 07e03b5 commit 80c02ab
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion google-api-grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.2</version>
<version>1.3.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
5 changes: 5 additions & 0 deletions google-cloud-clients/google-cloud-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,10 @@
<artifactId>guava-testlib</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker-compat-qual</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,10 @@ public void getDoubleArray() {
consumer.onCompleted();

assertThat(resultSet.next()).isTrue();
assertThat(resultSet.getDoubleArray(0)).isEqualTo(doubleArray, 0.0);
assertThat(resultSet.getDoubleArray(0))
.usingTolerance(0.0)
.containsExactly(doubleArray)
.inOrder();
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,11 @@ public void resultSetIteration() {
assertThat(rs.getLongArray("longArray")).isEqualTo(longArray);
assertThat(rs.getLongList(9)).isEqualTo(Longs.asList(longArray));
assertThat(rs.getLongList("longArray")).isEqualTo(Longs.asList(longArray));
assertThat(rs.getDoubleArray(10)).isEqualTo(doubleArray, 0.0);
assertThat(rs.getDoubleArray("doubleArray")).isEqualTo(doubleArray, 0.0);
assertThat(rs.getDoubleArray(10)).usingTolerance(0.0).containsAllOf(doubleArray);
assertThat(rs.getDoubleArray("doubleArray"))
.usingTolerance(0.0)
.containsExactly(doubleArray)
.inOrder();
assertThat(rs.getDoubleList(10)).isEqualTo(Doubles.asList(doubleArray));
assertThat(rs.getDoubleList("doubleArray")).isEqualTo(Doubles.asList(doubleArray));
assertThat(rs.getBytesList(11)).isEqualTo(Arrays.asList(byteArray));
Expand Down
11 changes: 8 additions & 3 deletions google-cloud-clients/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.2</version>
<version>1.3.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -381,7 +381,7 @@
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<version>2.2.0</version>
<version>2.3.2</version>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
Expand All @@ -407,7 +407,12 @@
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>0.30</version>
<version>0.42</version>
</dependency>
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker-compat-qual</artifactId>
<version>2.5.3</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down

0 comments on commit 80c02ab

Please sign in to comment.