Upgrade Truth to 0.32
ThrowableSubject#hasMessage is deprecated in favor of hasMessageThat, so
convert callers to the equivalent new caller.
Change-Id: I647f20f306e79ac7c5fc7420d2071687b588f310
diff --git a/WORKSPACE b/WORKSPACE
index 385920e..faec660 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -93,8 +93,8 @@
maven_jar(
name = "truth",
- artifact = "com.google.truth:truth:0.31",
- sha1 = "1a926b0cb2879fd32efbb3716ee8bab040f4218b",
+ artifact = "com.google.truth:truth:0.32",
+ sha1 = "e996fb4b41dad04365112786796c945f909cfdf7",
)
maven_jar(
diff --git a/gitiles-servlet/src/test/java/com/google/gitiles/ConfigUtilTest.java b/gitiles-servlet/src/test/java/com/google/gitiles/ConfigUtilTest.java
index 0002ed1..b7735c5 100644
--- a/gitiles-servlet/src/test/java/com/google/gitiles/ConfigUtilTest.java
+++ b/gitiles-servlet/src/test/java/com/google/gitiles/ConfigUtilTest.java
@@ -42,7 +42,8 @@
getDuration(config, "core", "dht", "timeout", def);
fail("expected IllegalArgumentException");
} catch (IllegalArgumentException e) {
- assertThat(e).hasMessage("Invalid time unit value: core.dht.timeout=5.2 sec");
+ assertThat(e).hasMessageThat().isEqualTo(
+ "Invalid time unit value: core.dht.timeout=5.2 sec");
}
config.setString("core", "dht", "timeout", "1 min");