@Test public void test0(){ Caller caller = new Caller(10,20); caller.firstNumberIsBigger(); }
public boolean firstNumberIsBigger(){ if (number1>0 && number2<=0){ return true; }else if (number1 <=0 && number2>0){ return false; } int compareResult = service.directCompare(number1,number2); if (compareResult > 0){ return true; } return false; }
Caller { public boolean firstNumberIsBigger(){ if (number1>0 && number2<=0){ return true; }else if (number1 <=0 && number2>0){ return false; } int compareResult = service.directCompare(number1,number2); if (compareResult > 0){ return true; } return false; } }
Caller { public boolean firstNumberIsBigger(){ if (number1>0 && number2<=0){ return true; }else if (number1 <=0 && number2>0){ return false; } int compareResult = service.directCompare(number1,number2); if (compareResult > 0){ return true; } return false; } Caller(int givenNumber1, int givenNumber2); }
Caller { public boolean firstNumberIsBigger(){ if (number1>0 && number2<=0){ return true; }else if (number1 <=0 && number2>0){ return false; } int compareResult = service.directCompare(number1,number2); if (compareResult > 0){ return true; } return false; } Caller(int givenNumber1, int givenNumber2); boolean firstNumberIsBigger(); }
Caller { public boolean firstNumberIsBigger(){ if (number1>0 && number2<=0){ return true; }else if (number1 <=0 && number2>0){ return false; } int compareResult = service.directCompare(number1,number2); if (compareResult > 0){ return true; } return false; } Caller(int givenNumber1, int givenNumber2); boolean firstNumberIsBigger();  }