From fba381c4f9cb6f92a531b0abb5fe6301352a4fb1 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 31 May 2019 13:39:24 -0700 Subject: [PATCH] Clean up test deprecation warnings for google-cloud-core --- .../test/java/com/google/cloud/StringEnumTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/google-cloud-clients/google-cloud-core/src/test/java/com/google/cloud/StringEnumTest.java b/google-cloud-clients/google-cloud-core/src/test/java/com/google/cloud/StringEnumTest.java index 6240e8b86851..716e124f53ec 100644 --- a/google-cloud-clients/google-cloud-core/src/test/java/com/google/cloud/StringEnumTest.java +++ b/google-cloud-clients/google-cloud-core/src/test/java/com/google/cloud/StringEnumTest.java @@ -84,17 +84,17 @@ public void testEnumInstances() { @Test public void testValueOf() { - assertThat(Letter.valueOf("A")).isSameAs(Letter.A); - assertThat(Letter.valueOf("B")).isSameAs(Letter.B); - assertThat(Letter.valueOf("C")).isSameAs(Letter.C); + assertThat(Letter.valueOf("A")).isSameInstanceAs(Letter.A); + assertThat(Letter.valueOf("B")).isSameInstanceAs(Letter.B); + assertThat(Letter.valueOf("C")).isSameInstanceAs(Letter.C); assertThat(Letter.valueOf("NonExistentLetter").toString()).isEqualTo("NonExistentLetter"); } @Test public void testValueOfStrict() { - assertThat(Letter.valueOfStrict("A")).isSameAs(Letter.A); - assertThat(Letter.valueOfStrict("B")).isSameAs(Letter.B); - assertThat(Letter.valueOfStrict("C")).isSameAs(Letter.C); + assertThat(Letter.valueOfStrict("A")).isSameInstanceAs(Letter.A); + assertThat(Letter.valueOfStrict("B")).isSameInstanceAs(Letter.B); + assertThat(Letter.valueOfStrict("C")).isSameInstanceAs(Letter.C); } @Test