aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.report.test/src/org/jacoco/report/ZipMultiReportOutputTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.report.test/src/org/jacoco/report/ZipMultiReportOutputTest.java')
-rw-r--r--org.jacoco.report.test/src/org/jacoco/report/ZipMultiReportOutputTest.java27
1 files changed, 15 insertions, 12 deletions
diff --git a/org.jacoco.report.test/src/org/jacoco/report/ZipMultiReportOutputTest.java b/org.jacoco.report.test/src/org/jacoco/report/ZipMultiReportOutputTest.java
index 388ddce4..0ad5c4cf 100644
--- a/org.jacoco.report.test/src/org/jacoco/report/ZipMultiReportOutputTest.java
+++ b/org.jacoco.report.test/src/org/jacoco/report/ZipMultiReportOutputTest.java
@@ -1,13 +1,14 @@
/*******************************************************************************
- * Copyright (c) 2009, 2019 Mountainminds GmbH & Co. KG and Contributors
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
+ * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors
+ * This program and the accompanying materials are made available under
+ * the terms of the Eclipse Public License 2.0 which is available at
+ * http://www.eclipse.org/legal/epl-2.0
+ *
+ * SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Marc R. Hoffmann - initial API and implementation
- *
+ *
*******************************************************************************/
package org.jacoco.report;
@@ -108,8 +109,9 @@ public class ZipMultiReportOutputTest {
final Map<String, byte[]> entries = readEntries();
assertEquals(
- new HashSet<String>(Arrays.asList("dir/index.html",
- "readme.txt")), entries.keySet());
+ new HashSet<String>(
+ Arrays.asList("dir/index.html", "readme.txt")),
+ entries.keySet());
assertArrayEquals(content1, entries.get("dir/index.html"));
assertArrayEquals(content2, entries.get("readme.txt"));
}
@@ -130,8 +132,9 @@ public class ZipMultiReportOutputTest {
final Map<String, byte[]> entries = readEntries();
assertEquals(
- new HashSet<String>(Arrays.asList("dir/index.html",
- "readme.txt")), entries.keySet());
+ new HashSet<String>(
+ Arrays.asList("dir/index.html", "readme.txt")),
+ entries.keySet());
assertArrayEquals(content1, entries.get("dir/index.html"));
assertArrayEquals(content2, entries.get("readme.txt"));
}
@@ -183,8 +186,8 @@ public class ZipMultiReportOutputTest {
while ((b = input.read()) != -1) {
entryBuffer.write(b);
}
- byte[] old = entries
- .put(entry.getName(), entryBuffer.toByteArray());
+ byte[] old = entries.put(entry.getName(),
+ entryBuffer.toByteArray());
assertNull("Duplicate entry " + entry.getName(), old);
}
return entries;