Skip to content

Commit

Permalink
Make test fixture package private
Browse files Browse the repository at this point in the history
Javadoc
  • Loading branch information
garydgregory committed Jan 24, 2025
1 parent 110a9f8 commit ebb29e9
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions src/test/java/org/apache/commons/codec/binary/Base64TestData.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,35 @@
*
* @see <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>
*/
public class Base64TestData {
class Base64TestData {

/**
* A valid base 64 encoding that has a length that is a multiple of 3.
* @see <a href="https://issues.apache.org/jira/browse/CODEC-101">Codec 101</a>
*
* @see <a href="https://issues.apache.org/jira/browse/CODEC-101">CODEC-101</a>
*/
public static final String CODEC_101_INPUT_LENGTH_IS_MULTIPLE_OF_3 = "124";
static final String CODEC_101_INPUT_LENGTH_IS_MULTIPLE_OF_3 = "124";

public static final String CODEC_98_NPE =
/**
* See CODEC-98.
*
* @see <a href="https://issues.apache.org/jira/browse/CODEC-98">CODEC-98</a>
*/
static final String CODEC_98_NPE =
"YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWjAxMjM";

public static final String CODEC_98_NPE_DECODED =
/**
* See CODEC-98.
*
* @see <a href="https://issues.apache.org/jira/browse/CODEC-98">CODEC-98</a>
*/
static final String CODEC_98_NPE_DECODED =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123";

// OpenSSL doesn't include the final \n, but it would be annoying beyond belief
// to further parameterize commons-codec to support this pointless variation.
/**
* OpenSSL doesn't include the final \n, but it would be annoying beyond belief
* to further parameterize commons-codec to support this pointless variation.
*/
static final String ENCODED_64_CHARS_PER_LINE =
"9IPNKwUvdLiIAp6ctz12SiQmOGstWyYvSPeevufDhrzaws65voykKjbIj33YWTa9\n" +
"xA7c/FHypWclrZhQ7onfc3JE93BJ5fT4R9zAEdjbjy1hv4ZYNnET4WJeXMLJ/5p+\n" +
Expand Down

0 comments on commit ebb29e9

Please sign in to comment.