File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
src/test/java/org/apache/commons/codec/binary Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change 4141import org .junit .jupiter .params .ParameterizedTest ;
4242import org .junit .jupiter .params .provider .Arguments ;
4343import org .junit .jupiter .params .provider .MethodSource ;
44+ import org .junit .jupiter .params .provider .ValueSource ;
4445
4546/**
4647 * Tests {@link Base64}.
@@ -893,15 +894,20 @@ void testRfc4648Section10Decode() {
893894 * @see <a href="https://tools.ietf.org/html/rfc4648">https://tools.ietf.org/
894895 * html/rfc4648</a>
895896 */
896- @ Test
897- void testRfc4648Section10DecodeEncode () {
898- testDecodeEncode ("" );
899- testDecodeEncode ("Zg==" );
900- testDecodeEncode ("Zm8=" );
901- testDecodeEncode ("Zm9v" );
902- testDecodeEncode ("Zm9vYg==" );
903- testDecodeEncode ("Zm9vYmE=" );
904- testDecodeEncode ("Zm9vYmFy" );
897+ @ ParameterizedTest
898+ // @formatter:off
899+ @ ValueSource (strings = {
900+ "" ,
901+ "Zg==" ,
902+ "Zm8=" ,
903+ "Zm9v" ,
904+ "Zm9vYg==" ,
905+ "Zm9vYmE=" ,
906+ "Zm9vYmFy"
907+ })
908+ // @formatter:on
909+ void testRfc4648Section10DecodeEncode (final String input ) {
910+ testDecodeEncode (input );
905911 }
906912
907913 /**
You can’t perform that action at this time.
0 commit comments