daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Sep 26th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package org.banana.wizard;
  2.  
  3. import org.junit.Test;
  4.  
  5. public class MessageWizardBuilderTest {
  6.  
  7.     private Message notice;
  8.  
  9.     @Test
  10.     public void test() {
  11.         // make Notice Message
  12.         MessageWizardBuilder noticeMaker = new MessageWizardBuilder();
  13.         Message notice = noticeMaker.createMessage()
  14.                                      .thatIsForNotice()
  15.                                      .andAdminNameIs("Father")
  16.                                      .andContentsAre("Come Home")
  17.                                      .end();
  18.        
  19.         // make Chat Message
  20.         MessageWizardBuilder chatMaker = new MessageWizardBuilder();
  21.         Message chat = chatMaker.createMessage()
  22.                                 .thatIsForChat()
  23.                                 .from("wolf")
  24.                                 .to("fox")
  25.                                 .andContentsAre("follow me")
  26.                                 .end();
  27.     }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top