GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — RxJava/src/test/java/rx/NotificationTest.java at 1.x · javalover/RxJava Expand file tree/ Copy pathNotificationTest.javaMore file actions 64 lines (54 loc) · 2.66 KB / Copy pathNotificationTest.javaFile metadata and controls64 lines (54 loc) · 2.66 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 package rx; import org.junit.Assert; import org.junit.Test; public class NotificationTest { @Test public void testOnNextIntegerNotificationDoesNotEqualNullNotification(){ final Notification<Integer> integerNotification = Notification.createOnNext(1); final Notification<Integer> nullNotification = Notification.createOnNext(null); Assert.assertFalse(integerNotification.equals(nullNotification)); } @Test public void testOnNextNullNotificationDoesNotEqualIntegerNotification(){ final Notification<Integer> integerNotification = Notification.createOnNext(1); final Notification<Integer> nullNotification = Notification.createOnNext(null); Assert.assertFalse(nullNotification.equals(integerNotification)); } @Test public void testOnNextIntegerNotificationsWhenEqual(){ final Notification<Integer> integerNotification = Notification.createOnNext(1); final Notification<Integer> integerNotification2 = Notification.createOnNext(1); Assert.assertTrue(integerNotification.equals(integerNotification2)); } @Test public void testOnNextIntegerNotificationsWhenNotEqual(){ final Notification<Integer> integerNotification = Notification.createOnNext(1); final Notification<Integer> integerNotification2 = Notification.createOnNext(2); Assert.assertFalse(integerNotification.equals(integerNotification2)); } @Test public void testOnErrorIntegerNotificationDoesNotEqualNullNotification(){ final Notification<Integer> integerNotification = Notification.createOnError(new Exception()); final Notification<Integer> nullNotification = Notification.createOnError(null); Assert.assertFalse(integerNotification.equals(nullNotification)); } @Test public void testOnErrorNullNotificationDoesNotEqualIntegerNotification(){ final Notification<Integer> integerNotification = Notification.createOnError(new Exception()); final Notification<Integer> nullNotification = Notification.createOnError(null); Assert.assertFalse(nullNotification.equals(integerNotification)); } @Test public void testOnErrorIntegerNotificationsWhenEqual(){ final Exception exception = new Exception(); final Notification<Integer> onErrorNotification = Notification.createOnError(exception); final Notification<Integer> onErrorNotification2 = Notification.createOnError(exception); Assert.assertTrue(onErrorNotification.equals(onErrorNotification2)); } @Test public void testOnErrorIntegerNotificationWhenNotEqual(){ final Notification<Integer> onErrorNotification = Notification.createOnError(new Exception()); final Notification<Integer> onErrorNotification2 = Notification.createOnError(new Exception()); Assert.assertFalse(onErrorNotification.equals(onErrorNotification2)); } } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |