BAEL-1196: jUnit @Test Annotation (#3184)

* BAEL-1196: jUnit @Test Annotation

* Fixed tests names as suggested.

* Reduced visibility on test methods.
This commit is contained in:
Donato Rimenti
2017-12-07 04:41:29 +01:00
committed by KevinGilmore
parent 50b9b80730
commit 1a7e85ceed
2 changed files with 65 additions and 0 deletions
@@ -0,0 +1,22 @@
package com.baeldung.junit5.bean;
/**
* Bean that contains utility methods to work with numbers.
*
* @author Donato Rimenti
*
*/
public class NumbersBean {
/**
* Returns true if a number is even, false otherwise.
*
* @param number
* the number to check
* @return true if the argument is even, false otherwise
*/
public boolean isNumberEven(int number) {
return number % 2 == 0;
}
}