Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. package silly;
  2.  
  3. import org.junit.Test;
  4.  
  5. public class ReallyDont {
  6.  
  7. public boolean doIt() { return true; }
  8.  
  9. public void reallyReally() {
  10. if ( !!!doIt() ) {
  11. System.out.println("I'm doing it");
  12. } else {
  13. System.out.println("Ok, I won't do it, *gawd*");
  14. }
  15. }
  16.  
  17. @Test
  18. public void shouldReallyNotDoIt() {
  19. new ReallyDont().reallyReally();
  20. }
  21. }
Add Comment
Please, Sign In to add comment