aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/com/jogamp/gluegen/jcpp/BuildMetadataTest.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-08-08 11:42:11 +0200
committerSven Gothel <[email protected]>2023-08-08 11:42:11 +0200
commit29198e4cd9a5bd8d1bb72569ea10394b8ace9ebb (patch)
tree80b42b93b85860ec9c70ddfbf257b16135a01162 /src/test/java/com/jogamp/gluegen/jcpp/BuildMetadataTest.java
parent226a5f35cd2eee3aa24a7daf6f20681f04f8d211 (diff)
Manually merge new upstream unit tests
Diffstat (limited to 'src/test/java/com/jogamp/gluegen/jcpp/BuildMetadataTest.java')
-rw-r--r--src/test/java/com/jogamp/gluegen/jcpp/BuildMetadataTest.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/java/com/jogamp/gluegen/jcpp/BuildMetadataTest.java b/src/test/java/com/jogamp/gluegen/jcpp/BuildMetadataTest.java
new file mode 100644
index 0000000..42dc071
--- /dev/null
+++ b/src/test/java/com/jogamp/gluegen/jcpp/BuildMetadataTest.java
@@ -0,0 +1,33 @@
+package org.anarres.cpp;
+
+import com.google.common.base.Charsets;
+import com.google.common.io.Resources;
+import java.net.URL;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ *
+ * @author shevek
+ */
+public class BuildMetadataTest {
+
+ private static final Logger LOG = LoggerFactory.getLogger(BuildMetadataTest.class);
+
+ @Test
+ public void testProperties() throws Exception {
+ URL url = Resources.getResource("META-INF/jcpp.properties");
+ String text = Resources.asCharSource(url, Charsets.ISO_8859_1).read();
+ LOG.info("Metadata is " + text);
+ }
+
+ @Test
+ public void testMetadata() throws Exception {
+ BuildMetadata metadata = BuildMetadata.getInstance();
+ LOG.info("Version is " + metadata.getVersion());
+ LOG.info("BuildDate is " + metadata.getBuildDate());
+ LOG.info("ChangeId is " + metadata.getChangeId());
+ }
+
+}