Guest User

Untitled

a guest
Jun 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. if (starColour.red > 200 && starColour.blue > 200 && starColour.green > 200){
  2. doSomething();
  3. }
  4.  
  5. // we do this according to the requirement #xxxx blah-blah..
  6. if (starColour.red > 200 && starColour.blue > 200 && starColour.green > 200){
  7. doSomething();
  8. }
  9.  
  10. if (starColour.red > 200 && starColour.blue > 200 && starColour.green > 200){
  11. doSomething();
  12. }
  13.  
  14. bool starIsBright;
  15. starIsBright = (starColour.red > 200 && starColour.blue > 200 && starColour.green > 200);
  16.  
  17. if(starIsBright){
  18. doSomething();
  19. }
  20.  
  21. assertThat(x, is(3));
  22. assertThat(x, is(not(4)));
  23. assertThat(responseString, either(containsString("color")).or(containsString("colour")));
  24. assertThat(myList, hasItem("3"));
  25.  
  26. assertEquals(3, x);
  27.  
  28. if( (x < 3 || x > 17) && (y < 8 || y > 15) )
  29.  
  30. if( xAndYAreValid( x, y ) ) // or similar...
  31.  
  32. if (starColourIsGreaterThanThreshold(){
  33. doSomething();
  34. }
  35.  
  36. ....
  37.  
  38. private boolean starColourIsGreaterThanThreshold() {
  39. return starColour.red > THRESHOLD &&
  40. starColour.blue > THRESHOLD &&
  41. starColour.green > THRESHOLD
  42. }
  43.  
  44. account.updateBalance();
  45. child.givePacifier();
  46. int count = question.getAnswerCount();
  47.  
  48. public void dumpStackPretty(boolean allThreads) {
  49. ....
  50. }
  51.  
  52. public void someMethod() {
  53. dumpStackPretty(true);
  54. }
  55.  
  56. public enum WhichThreads { All, NonDaemon, None; }
  57. public void dumpStackPretty(WhichThreads whichThreads) {
  58. ....
  59. }
  60.  
  61. public void someMethod() {
  62. dumpStackPretty(WhichThreads.All);
  63. }
Add Comment
Please, Sign In to add comment