Skip to content

Commit 81b8961

Browse files
authored
Update assertNotNull (GoogleCloudPlatform#4397)
* Update assertNotNull Updating import junit.framework.TestCase.assertNotNull issue GoogleCloudPlatform#3694 * Update assertEqual + assertTrue GoogleCloudPlatform#3694 * fix import order * update import order * Update CreateJobFromAdHocTest.java
1 parent f0883ef commit 81b8961

23 files changed

Lines changed: 26 additions & 24 deletions

File tree

appengine-java11/tasks/src/test/java/com/example/task/CreateTaskIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.example.task;
1818

1919
import static com.google.common.truth.Truth.assertThat;
20-
import static junit.framework.TestCase.assertNotNull;
20+
import static org.junit.Assert.assertNotNull;
2121

2222
import java.io.ByteArrayOutputStream;
2323
import java.io.PrintStream;

appengine-java8/tasks/quickstart/src/test/java/com/example/task/CreateTaskIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.example.task;
1818

1919
import static com.google.common.truth.Truth.assertThat;
20-
import static junit.framework.TestCase.assertNotNull;
20+
import static org.junit.Assert.assertNotNull;
2121

2222
import java.io.ByteArrayOutputStream;
2323
import java.io.PrintStream;

cdn/signed-urls/src/test/java/com/google/cdn/SignedUrlsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
package com.google.cdn;
1919

2020
import static com.google.cdn.SignedUrls.signUrl;
21-
import static junit.framework.TestCase.assertEquals;
21+
import static org.junit.Assert.assertEquals;
2222

2323
import java.util.Base64;
2424
import java.util.Date;

container-registry/container-analysis/src/test/java/com/example/containeranalysis/SamplesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package com.example.containeranalysis;
1818

1919
import static java.lang.Thread.sleep;
20-
import static junit.framework.TestCase.assertEquals;
21-
import static junit.framework.TestCase.assertTrue;
20+
import static org.junit.Assert.assertEquals;
21+
import static org.junit.Assert.assertTrue;
2222

2323
import com.google.api.gax.rpc.AlreadyExistsException;
2424
import com.google.api.gax.rpc.NotFoundException;

healthcare/v1/src/test/java/snippets/healthcare/DatasetTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
package snippets.healthcare;
1818

19-
import static junit.framework.TestCase.assertNotNull;
2019
import static org.hamcrest.CoreMatchers.containsString;
20+
import static org.junit.Assert.assertNotNull;
2121
import static org.junit.Assert.assertThat;
2222

2323
import com.google.api.client.googleapis.json.GoogleJsonResponseException;

healthcare/v1/src/test/java/snippets/healthcare/DicomStoreTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
package snippets.healthcare;
1818

19-
import static junit.framework.TestCase.assertNotNull;
2019
import static org.hamcrest.CoreMatchers.containsString;
20+
import static org.junit.Assert.assertNotNull;
2121
import static org.junit.Assert.assertThat;
2222

2323
import java.io.ByteArrayOutputStream;

healthcare/v1/src/test/java/snippets/healthcare/DicomWebTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package snippets.healthcare;
1818

1919
import static com.google.common.truth.Truth.assertThat;
20-
import static junit.framework.TestCase.assertNotNull;
2120
import static org.hamcrest.CoreMatchers.containsString;
21+
import static org.junit.Assert.assertNotNull;
2222
import static org.junit.Assert.assertThat;
2323

2424
import java.io.ByteArrayOutputStream;

healthcare/v1/src/test/java/snippets/healthcare/FhirResourceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
package snippets.healthcare;
1818

19-
import static junit.framework.TestCase.assertNotNull;
2019
import static org.hamcrest.CoreMatchers.containsString;
20+
import static org.junit.Assert.assertNotNull;
2121
import static org.junit.Assert.assertThat;
2222
import static org.junit.Assert.assertTrue;
2323

healthcare/v1/src/test/java/snippets/healthcare/FhirStoreTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
package snippets.healthcare;
1818

19-
import static junit.framework.TestCase.assertNotNull;
2019
import static org.hamcrest.CoreMatchers.containsString;
20+
import static org.junit.Assert.assertNotNull;
2121
import static org.junit.Assert.assertThat;
2222

2323
import java.io.ByteArrayOutputStream;

healthcare/v1/src/test/java/snippets/healthcare/Hl7v2MessageTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616

1717
package snippets.healthcare;
1818

19-
import static junit.framework.TestCase.assertNotNull;
19+
2020
import static org.hamcrest.CoreMatchers.containsString;
21+
import static org.junit.Assert.assertNotNull;
2122
import static org.junit.Assert.assertThat;
2223
import static org.junit.Assert.assertTrue;
2324

0 commit comments

Comments
 (0)