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:
mcilwain 2016-07-15 08:39:25 -07:00 committed by Ben McIlwain
parent eed319990a
commit 71ab4a648b
7 changed files with 27 additions and 10 deletions

View file

@ -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);
}
}