mirror of
https://github.com/google/nomulus
synced 2026-09-18 22:14:23 +00:00
Handle nullness properly in some message/flow/poll code
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127543268
This commit is contained in:
@@ -16,6 +16,8 @@ package google.registry.model.poll;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import com.google.common.testing.NullPointerTester;
|
||||
import com.google.common.testing.NullPointerTester.Visibility;
|
||||
import org.joda.time.DateTime;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -37,4 +39,10 @@ public final class MessageQueueInfoTest {
|
||||
mp.messageId = "adorable";
|
||||
assertThat(mp.getMessageId()).isEqualTo("adorable");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNullness() {
|
||||
NullPointerTester tester = new NullPointerTester();
|
||||
tester.testStaticMethods(MessageQueueInfo.class, Visibility.PROTECTED);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user