@@ -124,7 +124,7 @@ public void tearDown() throws Exception {
124124
125125 @ ParameterizedTest
126126 @ MethodSource ("data" )
127- public void testAlgorithm (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) throws NoSuchAlgorithmException {
127+ public void testAlgorithm (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) throws NoSuchAlgorithmException {
128128 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
129129 final String algorithm = hmacAlgorithm .getName ();
130130 assertNotNull (algorithm );
@@ -135,63 +135,63 @@ public void testAlgorithm(HmacAlgorithms hmacAlgorithm, byte[] standardResultByt
135135
136136 @ ParameterizedTest
137137 @ MethodSource ("data" )
138- public void testGetHmacEmptyKey (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
138+ public void testGetHmacEmptyKey (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
139139 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
140140 assertThrows (IllegalArgumentException .class , () -> HmacUtils .getInitializedMac (hmacAlgorithm , EMPTY_BYTE_ARRAY ));
141141 }
142142
143143 @ ParameterizedTest
144144 @ MethodSource ("data" )
145- public void testGetHmacNullKey (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
145+ public void testGetHmacNullKey (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
146146 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
147147 assertThrows (IllegalArgumentException .class , () -> HmacUtils .getInitializedMac (hmacAlgorithm , null ));
148148 }
149149
150150 @ ParameterizedTest
151151 @ MethodSource ("data" )
152- public void testHmacFailByteArray (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
152+ public void testHmacFailByteArray (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
153153 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
154154 assertThrows (IllegalArgumentException .class , () -> new HmacUtils (hmacAlgorithm , (byte []) null ).hmac (STANDARD_PHRASE_BYTES ));
155155 }
156156
157157 @ ParameterizedTest
158158 @ MethodSource ("data" )
159- public void testHmacFailInputStream (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
159+ public void testHmacFailInputStream (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
160160 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
161161 assertThrows (IllegalArgumentException .class , () -> new HmacUtils (hmacAlgorithm , (byte []) null ).hmac (new ByteArrayInputStream (STANDARD_PHRASE_BYTES )));
162162 }
163163
164164 @ ParameterizedTest
165165 @ MethodSource ("data" )
166- public void testHmacFailString (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
166+ public void testHmacFailString (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
167167 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
168168 assertThrows (IllegalArgumentException .class , () -> new HmacUtils (hmacAlgorithm , (String ) null ).hmac (STANDARD_PHRASE_STRING ));
169169 }
170170
171171 @ ParameterizedTest
172172 @ MethodSource ("data" )
173- public void testHmacHexFailByteArray (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
173+ public void testHmacHexFailByteArray (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
174174 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
175175 assertThrows (IllegalArgumentException .class , () -> new HmacUtils (hmacAlgorithm , (byte []) null ).hmac (STANDARD_PHRASE_BYTES ));
176176 }
177177
178178 @ ParameterizedTest
179179 @ MethodSource ("data" )
180- public void testHmacHexFailInputStream (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
180+ public void testHmacHexFailInputStream (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
181181 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
182182 assertThrows (IllegalArgumentException .class , () -> new HmacUtils (hmacAlgorithm , (byte []) null ).hmac (new ByteArrayInputStream (STANDARD_PHRASE_BYTES )));
183183 }
184184
185185 @ ParameterizedTest
186186 @ MethodSource ("data" )
187- public void testHmacHexFailString (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
187+ public void testHmacHexFailString (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
188188 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
189189 assertThrows (IllegalArgumentException .class , () -> new HmacUtils (hmacAlgorithm , (String ) null ).hmac (STANDARD_PHRASE_STRING ));
190190 }
191191
192192 @ ParameterizedTest
193193 @ MethodSource ("data" )
194- public void testInitializedMac (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
194+ public void testInitializedMac (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
195195 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
196196 final Mac mac = HmacUtils .getInitializedMac (hmacAlgorithm , STANDARD_KEY_BYTES );
197197 final Mac mac2 = HmacUtils .getInitializedMac (hmacAlgorithm .getName (), STANDARD_KEY_BYTES );
@@ -201,44 +201,44 @@ public void testInitializedMac(HmacAlgorithms hmacAlgorithm, byte[] standardResu
201201
202202 @ ParameterizedTest
203203 @ MethodSource ("data" )
204- public void testMacByteArary (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
204+ public void testMacByteArary (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
205205 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
206206 assertArrayEquals (standardResultBytes , new HmacUtils (hmacAlgorithm , STANDARD_KEY_BYTES ).hmac (STANDARD_PHRASE_BYTES ));
207207 }
208208
209209 @ ParameterizedTest
210210 @ MethodSource ("data" )
211- public void testMacHexByteArray (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
211+ public void testMacHexByteArray (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
212212 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
213213 assertEquals (standardResultString , new HmacUtils (hmacAlgorithm , STANDARD_KEY_BYTES ).hmacHex (STANDARD_PHRASE_BYTES ));
214214 }
215215
216216 @ ParameterizedTest
217217 @ MethodSource ("data" )
218- public void testMacHexInputStream (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) throws IOException {
218+ public void testMacHexInputStream (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) throws IOException {
219219 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
220220 assertEquals (standardResultString ,
221221 new HmacUtils (hmacAlgorithm , STANDARD_KEY_BYTES ).hmacHex (new ByteArrayInputStream (STANDARD_PHRASE_BYTES )));
222222 }
223223
224224 @ ParameterizedTest
225225 @ MethodSource ("data" )
226- public void testMacHexString (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
226+ public void testMacHexString (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
227227 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
228228 assertEquals (standardResultString , new HmacUtils (hmacAlgorithm , STANDARD_KEY_BYTES ).hmacHex (STANDARD_PHRASE_STRING ));
229229 }
230230
231231 @ ParameterizedTest
232232 @ MethodSource ("data" )
233- public void testMacInputStream (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) throws IOException {
233+ public void testMacInputStream (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) throws IOException {
234234 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
235235 assertArrayEquals (standardResultBytes ,
236236 new HmacUtils (hmacAlgorithm , STANDARD_KEY_BYTES ).hmac (new ByteArrayInputStream (STANDARD_PHRASE_BYTES )));
237237 }
238238
239239 @ ParameterizedTest
240240 @ MethodSource ("data" )
241- public void testMacString (HmacAlgorithms hmacAlgorithm , byte [] standardResultBytes , String standardResultString ) {
241+ public void testMacString (final HmacAlgorithms hmacAlgorithm , final byte [] standardResultBytes , final String standardResultString ) {
242242 assumeTrue (HmacUtils .isAvailable (hmacAlgorithm ));
243243 assertArrayEquals (standardResultBytes , new HmacUtils (hmacAlgorithm , STANDARD_KEY_BYTES ).hmac (STANDARD_PHRASE_STRING ));
244244 }
0 commit comments