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:
committed by
KevinGilmore
parent
50b9b80730
commit
1a7e85ceed
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user