-
Notifications
You must be signed in to change notification settings - Fork 10
Katanorman #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Katanorman #30
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #30 +/- ##
=============================================
+ Coverage 94.78% 96.17% +1.38%
- Complexity 138 205 +67
=============================================
Files 26 43 +17
Lines 307 444 +137
Branches 50 64 +14
=============================================
+ Hits 291 427 +136
Misses 5 5
- Partials 11 12 +1
Continue to review full report at Codecov.
|
/** | ||
* method fill number digite. | ||
*/ | ||
public void fillNumber() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@666nonak666
Instead of having this method
you can have a static attribute.
Review again
/** | ||
* Created by NORMAN on 2/7/2017. | ||
*/ | ||
public class HistoryOneBankOcr extends FileNumberBankOcr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AT-03/at-03
We don't here inheritance
Please have a single class for BankOCR
* | ||
* @param daysRented of int type. | ||
* @return the amount of a new release rented movie. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AT-03/at-03
you should use
/**
* {@inherentDoc}
*/
|
||
// when: | ||
HistoryOneBankOcr bankOcr = new HistoryOneBankOcr(); | ||
String actualResult = bankOcr.verificationLineNumber(insertLineFour); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be final
); | ||
|
||
// when: | ||
HistoryOneBankOcr bankOcr = new HistoryOneBankOcr(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are repeating this line in all your tests
Please move it in a @before method
@Test | ||
public void testCalculateAmountWhenTheRentedDaysIsLessThanThree() { | ||
// given: | ||
NewRelease newReleaseInstance = new NewRelease("Test"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AT-03/at-03
what is wrong here
|
||
// then | ||
final double expectedResult = 3; | ||
assertEquals(0, expectedResult, actualResult); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AT-03/at-03
What is wrong here?
|
||
// when: | ||
final double actualResult = newReleaseInstance.calculateAmount(10); | ||
|
||
// then: | ||
final double expectedResult = 30; | ||
assertEquals(0, expectedResult, actualResult); | ||
assertTrue(expectedResult - actualResult == 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should use an assertEquals
No description provided.