コード例 #1
0
 @Test
 public void testNormalActionText() {
   SMessage CM = SMessageImpls.deserialize("conv/12/james/text: hello");
   Assert.assertEquals(CM.toString(), "conv/12/james/text: hello");
 }
コード例 #2
0
 @Test
 public void testid() {
   SMessage CM = SMessageImpls.deserialize("id: 12");
   Assert.assertEquals(CM.toString(), "id: 12");
 }
コード例 #3
0
 @Test
 public void testBadHandle() {
   SMessage CM = SMessageImpls.deserialize("unavailable: james");
   Assert.assertEquals(CM.toString(), "unavailable: james");
 }
コード例 #4
0
 @Test
 public void testHandleClaimed() {
   SMessage CM = SMessageImpls.deserialize("claimed: james");
   Assert.assertEquals(CM.toString(), "claimed: james");
 }
コード例 #5
0
 @Test
 public void testAvailablityOff() {
   SMessage CM = SMessageImpls.deserialize("offline: james");
   Assert.assertEquals(CM.toString(), "offline: james");
 }
コード例 #6
0
 @Test
 public void testNormalActionAdd() {
   SMessage CM = SMessageImpls.deserialize("conv/12/james/add: john");
   Assert.assertEquals(CM.toString(), "conv/12/james/add: john");
 }