Skip to content

Commit

Permalink
Revert "change tests"
Browse files Browse the repository at this point in the history
This reverts commit db78162.
  • Loading branch information
JoeWang1127 committed May 10, 2024
1 parent 99c7b7f commit 905d3c4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
package com.google.cloud;

import static com.google.common.base.MoreObjects.firstNonNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotSame;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotSame;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import org.junit.jupiter.api.Test;
import org.junit.Test;

/**
* Base class for serialization tests. To use this class in your tests override the {@code
Expand All @@ -44,7 +44,7 @@ public abstract class BaseSerializationTest {
protected abstract Restorable<?>[] restorableObjects();

@Test
void testSerializableObjects() throws Exception {
public void testSerializableObjects() throws Exception {
for (Serializable obj : firstNonNull(serializableObjects(), new Serializable[0])) {
Object copy = serializeAndDeserialize(obj);
assertEquals(obj, obj);
Expand All @@ -57,7 +57,7 @@ void testSerializableObjects() throws Exception {
}

@Test
void testRestorableObjects() throws Exception {
public void testRestorableObjects() throws Exception {
for (Restorable restorable : firstNonNull(restorableObjects(), new Restorable[0])) {
RestorableState<?> state = restorable.capture();
RestorableState<?> deserializedState = serializeAndDeserialize(state);
Expand Down

0 comments on commit 905d3c4

Please sign in to comment.