mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 08:57:12 +02: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:
parent
eed319990a
commit
71ab4a648b
7 changed files with 27 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue