Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (starColour.red > 200 && starColour.blue > 200 && starColour.green > 200){
- doSomething();
- }
- // we do this according to the requirement #xxxx blah-blah..
- if (starColour.red > 200 && starColour.blue > 200 && starColour.green > 200){
- doSomething();
- }
- if (starColour.red > 200 && starColour.blue > 200 && starColour.green > 200){
- doSomething();
- }
- bool starIsBright;
- starIsBright = (starColour.red > 200 && starColour.blue > 200 && starColour.green > 200);
- if(starIsBright){
- doSomething();
- }
- assertThat(x, is(3));
- assertThat(x, is(not(4)));
- assertThat(responseString, either(containsString("color")).or(containsString("colour")));
- assertThat(myList, hasItem("3"));
- assertEquals(3, x);
- if( (x < 3 || x > 17) && (y < 8 || y > 15) )
- if( xAndYAreValid( x, y ) ) // or similar...
- if (starColourIsGreaterThanThreshold(){
- doSomething();
- }
- ....
- private boolean starColourIsGreaterThanThreshold() {
- return starColour.red > THRESHOLD &&
- starColour.blue > THRESHOLD &&
- starColour.green > THRESHOLD
- }
- account.updateBalance();
- child.givePacifier();
- int count = question.getAnswerCount();
- public void dumpStackPretty(boolean allThreads) {
- ....
- }
- public void someMethod() {
- dumpStackPretty(true);
- }
- public enum WhichThreads { All, NonDaemon, None; }
- public void dumpStackPretty(WhichThreads whichThreads) {
- ....
- }
- public void someMethod() {
- dumpStackPretty(WhichThreads.All);
- }
Add Comment
Please, Sign In to add comment