1
1
// SPDX-License-Identifier: Apache-2.0
2
- package com . hedera .block .common .utils ;
2
+ package org . hiero .block .common .utils ;
3
3
4
4
import static org .assertj .core .api .Assertions .assertThat ;
5
5
@@ -15,7 +15,7 @@ class MathUtilitiesTest {
15
15
* returns {@code true} if the input number is a power of two.
16
16
*/
17
17
@ ParameterizedTest
18
- @ MethodSource ("com.hedera .block.common.CommonsTestUtility#powerOfTwoIntegers" )
18
+ @ MethodSource ("org.hiero .block.common.CommonsTestUtility#powerOfTwoIntegers" )
19
19
void testIsPowerOfTwoPass (final int toTest ) {
20
20
final boolean actual = MathUtilities .isPowerOfTwo (toTest );
21
21
assertThat (actual ).isTrue ();
@@ -27,8 +27,8 @@ void testIsPowerOfTwoPass(final int toTest) {
27
27
*/
28
28
@ ParameterizedTest
29
29
@ MethodSource ({
30
- "com.hedera .block.common.CommonsTestUtility#nonPowerOfTwoIntegers" ,
31
- "com.hedera .block.common.CommonsTestUtility#negativePowerOfTwoIntegers"
30
+ "org.hiero .block.common.CommonsTestUtility#nonPowerOfTwoIntegers" ,
31
+ "org.hiero .block.common.CommonsTestUtility#negativePowerOfTwoIntegers"
32
32
})
33
33
void testIsPowerOfTwoFail (final int toTest ) {
34
34
final boolean actual = MathUtilities .isPowerOfTwo (toTest );
@@ -40,7 +40,7 @@ void testIsPowerOfTwoFail(final int toTest) {
40
40
* returns {@code true} if the input number is even.
41
41
*/
42
42
@ ParameterizedTest
43
- @ MethodSource ("com.hedera .block.common.CommonsTestUtility#evenIntegers" )
43
+ @ MethodSource ("org.hiero .block.common.CommonsTestUtility#evenIntegers" )
44
44
void testIsEvenPass (final int toTest ) {
45
45
final boolean actual = MathUtilities .isEven (toTest );
46
46
assertThat (actual ).isTrue ();
@@ -51,7 +51,7 @@ void testIsEvenPass(final int toTest) {
51
51
* returns {@code false} if the input number is odd.
52
52
*/
53
53
@ ParameterizedTest
54
- @ MethodSource ("com.hedera .block.common.CommonsTestUtility#oddIntegers" )
54
+ @ MethodSource ("org.hiero .block.common.CommonsTestUtility#oddIntegers" )
55
55
void testIsEvenFail (final int toTest ) {
56
56
final boolean actual = MathUtilities .isEven (toTest );
57
57
assertThat (actual ).isFalse ();
@@ -63,7 +63,7 @@ void testIsEvenFail(final int toTest) {
63
63
* the input to check is a positive power of 10.
64
64
*/
65
65
@ ParameterizedTest
66
- @ MethodSource ("com.hedera .block.common.CommonsTestUtility#positivePowersOf10" )
66
+ @ MethodSource ("org.hiero .block.common.CommonsTestUtility#positivePowersOf10" )
67
67
void testIsPositivePowerOf10Pass (final long toTest ) {
68
68
final boolean actual = MathUtilities .isPositivePowerOf10 (toTest );
69
69
assertThat (actual ).isTrue ();
@@ -76,8 +76,8 @@ void testIsPositivePowerOf10Pass(final long toTest) {
76
76
*/
77
77
@ ParameterizedTest
78
78
@ MethodSource ({
79
- "com.hedera .block.common.CommonsTestUtility#negativePowersOf10" ,
80
- "com.hedera .block.common.CommonsTestUtility#nonPowersOf10"
79
+ "org.hiero .block.common.CommonsTestUtility#negativePowersOf10" ,
80
+ "org.hiero .block.common.CommonsTestUtility#nonPowersOf10"
81
81
})
82
82
void testIsPositivePowerOf10Fail (final long toTest ) {
83
83
final boolean actual = MathUtilities .isPositivePowerOf10 (toTest );
0 commit comments