. + * This test does not verify that the digests are correct. + */ +public class LineBreaks { + + static final String KEY = "Key"; + static final String VALUE = "Value"; + static final String SECTION = "Section"; + static final String FOO = "Foo"; + static final String BAR = "Bar"; + + byte[] createTestManifest(String lineBreak, boolean onlyMainAtts) { + System.out.println("lineBreak = " + + byteArrayToIntList(lineBreak.getBytes(UTF_8))); + System.out.println("onlyMainAtts = " + onlyMainAtts); + String mf = ""; + mf += Name.MANIFEST_VERSION + ": 1.0" + lineBreak; + mf += KEY + ": " + VALUE + lineBreak; + mf += lineBreak; + if (!onlyMainAtts) { + mf += "Name: " + SECTION + lineBreak; + mf += FOO + ": " + BAR + lineBreak; + mf += lineBreak; + } + System.out.println("-".repeat(72)); + System.out.println(mf); + System.out.println("-".repeat(72)); + byte[] mfBytes = mf.getBytes(UTF_8); + System.out.println("binary manifest = " + byteArrayToIntList(mfBytes)); + return mfBytes; + } + + @DataProvider(name = "parameters") + public static Object[][] parameters() { + Listnewline: CR LF | LF | CR (not followed by LF)