You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2023/02/28 14:57:22 UTC
[jackrabbit-filevault] branch JCRVLT-688 updated: JCRVLT-688: add minimal test coverage for generator info
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch JCRVLT-688
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
The following commit(s) were added to refs/heads/JCRVLT-688 by this push:
new 8ba05ca2 JCRVLT-688: add minimal test coverage for generator info
8ba05ca2 is described below
commit 8ba05ca23cb983a143d41cf0c145b85a60102a7c
Author: Julian Reschke <ju...@gmx.de>
AuthorDate: Tue Feb 28 15:57:10 2023 +0100
JCRVLT-688: add minimal test coverage for generator info
---
.../java/org/apache/jackrabbit/vault/fs/io/JarExporterTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/io/JarExporterTest.java b/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/io/JarExporterTest.java
index 5c6c4b47..89281ceb 100644
--- a/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/io/JarExporterTest.java
+++ b/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/io/JarExporterTest.java
@@ -23,6 +23,7 @@ import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
+import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
@@ -81,6 +82,13 @@ public class JarExporterTest {
}
}
+ @Test
+ public void checkGenerator() throws RepositoryException, IOException {
+ try (JarExporter exporter = new JarExporter(new ByteArrayOutputStream());) {
+ assertEquals("org.apache.jackrabbit.vault:SNAPSHOT", exporter.getGenerator());
+ }
+ }
+
private int countEntries(Archive.Entry entry) {
int c = 1;
for (Archive.Entry child : entry.getChildren()) {