Skip to content

Conversation

@666nonak666
Copy link

No description provided.

@codecov-io
Copy link

codecov-io commented Jul 7, 2017

Codecov Report

Merging #30 into develop will increase coverage by 1.38%.
The diff coverage is 99.27%.

Impacted file tree graph

@@              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
Impacted Files Coverage Δ Complexity Δ
...g/fundacionjala/coding/norman/banck_ocr/Digit.java 100% <100%> (ø) 1 <1> (?)
...fundacionjala/coding/norman/movies/NewRelease.java 100% <100%> (ø) 4 <4> (?)
...la/coding/norman/multiples3and5/Multiply3and5.java 100% <100%> (ø) 5 <5> (?)
...g/fundacionjala/coding/norman/movies/Customer.java 100% <100%> (ø) 8 <8> (?)
...acionjala/coding/norman/evaporator/Evaporator.java 100% <100%> (ø) 3 <3> (?)
...org/fundacionjala/coding/norman/movies/Rental.java 100% <100%> (ø) 5 <5> (?)
...ding/norman/highestandlowest/HighestAndLowest.java 100% <100%> (ø) 2 <2> (?)
.../org/fundacionjala/coding/norman/movies/Movie.java 100% <100%> (ø) 2 <2> (?)
...ala/coding/norman/banck_ocr/HistoryOneBankOcr.java 100% <100%> (ø) 3 <3> (?)
...ndacionjala/coding/norman/spinwords/SpinWords.java 100% <100%> (ø) 4 <4> (?)
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 112c303...80f5d9b. Read the comment docs.

/**
* method fill number digite.
*/
public void fillNumber() {
Copy link
Contributor

@carledriss carledriss Jul 7, 2017

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 {
Copy link
Contributor

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.
*/
Copy link
Contributor

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);
Copy link
Contributor

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();
Copy link
Contributor

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");
Copy link
Contributor

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);
Copy link
Contributor

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 = 30;
assertEquals(0, expectedResult, actualResult);
assertTrue(expectedResult - actualResult == 0);
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants