Upgrade to Truth 1.0 (#281)

* Upgrade to Truth 1.0

Refactored fail(...) to assertWithMessage().fail().

Upgraded com.google.monitoring-client family of dependencies to 1.0.6

Also fixed bad use of io.StringIO (on binary buffer) recently introduced to
google-java-format-diff.py.
This commit is contained in:
Weimin Yu 2019-09-24 10:23:58 -04:00 committed by GitHub
parent c63a1e559b
commit 7db99e3308
89 changed files with 235 additions and 240 deletions

View file

@ -9,7 +9,7 @@ com.google.guava:failureaccess:1.0.1
com.google.guava:guava:27.0.1-android
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
com.google.j2objc:j2objc-annotations:1.1
com.google.truth:truth:0.45
com.google.truth:truth:1.0
com.googlecode.java-diff-utils:diffutils:1.3.0
com.kohlschutter.junixsocket:junixsocket-common:2.0.4
com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4

View file

@ -9,7 +9,7 @@ com.google.guava:failureaccess:1.0.1
com.google.guava:guava:27.0.1-android
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
com.google.j2objc:j2objc-annotations:1.1
com.google.truth:truth:0.45
com.google.truth:truth:1.0
com.googlecode.java-diff-utils:diffutils:1.3.0
com.kohlschutter.junixsocket:junixsocket-common:2.0.4
com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4

View file

@ -10,7 +10,7 @@ com.google.guava:failureaccess:1.0.1
com.google.guava:guava:27.0.1-android
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
com.google.j2objc:j2objc-annotations:1.1
com.google.truth:truth:0.45
com.google.truth:truth:1.0
com.googlecode.java-diff-utils:diffutils:1.3.0
com.kohlschutter.junixsocket:junixsocket-common:2.0.4
com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4

View file

@ -26,7 +26,7 @@ com.google.http-client:google-http-client-jackson2:1.23.0
com.google.http-client:google-http-client:1.23.0
com.google.j2objc:j2objc-annotations:1.1
com.google.oauth-client:google-oauth-client:1.23.0
com.google.truth:truth:0.45
com.google.truth:truth:1.0
com.googlecode.java-diff-utils:diffutils:1.3.0
com.kohlschutter.junixsocket:junixsocket-common:2.0.4
com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4

View file

@ -58,7 +58,6 @@ import java.util.stream.Collectors;
*/
// TODO(weiminyu): move this class and test to a standalone 'testing' project. Note that the util
// project is not good since it depends back to core.
@SuppressWarnings("unchecked") // On behalf of Raw type Subject; remove after Truth 1.0 upgrade.
public class TextDiffSubject extends Subject {
private final ImmutableList<String> actual;