コード例 #1
0
 @Test
 public void testGetURL() {
   ChannelListItemRepresentation instance = new ChannelListItemRepresentation();
   instance.setChannel(getMockedChannel());
   String expResult = "irc://irc.example.com/channels/#test";
   String result = instance.getURL();
   assertEquals(expResult, result);
 }
コード例 #2
0
 @Test
 public void testGetName() {
   ChannelListItemRepresentation instance = new ChannelListItemRepresentation();
   instance.setChannel(getMockedChannel());
   String expResult = "#test";
   String result = instance.getName();
   assertEquals(expResult, result);
 }