Permalink
Browse files

add silly tests

  • Loading branch information...
notnoop committed Jun 23, 2011
1 parent 28e2cff commit ce9db4342f543bd589a038f6f53e3a340e18adf3
Showing with 27 additions and 0 deletions.
  1. +27 −0 src/test/java/com/notnoop/mpns/MPNSTest.java
@@ -0,0 +1,27 @@
+package com.notnoop.mpns;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+import static org.hamcrest.CoreMatchers.*;
+
+/**
+ * Silly Tests
+ */
+public class MPNSTest {
+
+ @Test
+ public void testInstances() {
+ assertThat(MPNS.newNotification(), is(MpnsNotificationBuilder.class));
+ assertThat(MPNS.newService(), is(MpnsServiceBuilder.class));
+ }
+
+ @Test
+ public void notificationShouldGetNewInstances() {
+ assertNotSame(MPNS.newNotification(), MPNS.newNotification());
+ }
+
+ @Test
+ public void newServiceGetNewInstances() {
+ assertNotSame(MPNS.newService(), MPNS.newService());
+ }
+}

0 comments on commit ce9db43

Please sign in to comment.