29import java.io.IOException;
30import java.net.URISyntaxException;
31import java.security.NoSuchAlgorithmException;
33import org.jau.base.JaulibVersion;
34import org.jau.pkg.JaulibJarSHASum;
35import org.jau.sec.SHASum;
36import org.jau.util.VersionUtil;
37import org.junit.Assert;
38import org.junit.FixMethodOrder;
40import org.junit.runners.MethodSorters;
42import jau.test.junit.util.JunitTracer;
44@FixMethodOrder(MethodSorters.NAME_ASCENDING)
46 static boolean VERBOSE =
false;
51 System.err.println(
"Version Info:");
53 System.err.println(
"");
54 System.err.println(
"Full Manifest:");
60 throws IllegalArgumentException, IOException, URISyntaxException, SecurityException, NoSuchAlgorithmException
64 System.err.println(
"SHA CLASSES.this (build-time): "+shaClassesThis);
67 final byte[] shasum = shaSum.
compute(VERBOSE);
69 System.err.println(
"SHA CLASSES.this (now): "+shaClasses);
70 Assert.assertEquals(
"SHA not equal", shaClassesThis, shaClasses);
73 public static void main(
final String args[])
throws IOException {
76 org.junit.runner.JUnitCore.
main(tstname);
static void main(final String args[])
static JaulibVersion getInstance()
Returns a transient new instance.
jaulib definition of TempJarSHASum's specialization of SHASum.
Utility class to produce secure hash (SHA) sums over diverse input sources.
final byte[] compute(final boolean verbose)
Implementation gathers all files traversing through given paths via IOUtil#filesOf(List,...
static StringBuilder toHexString(final byte[] shasum, StringBuilder sb)
Simple helper to print the given byte-array into a string, here appended to StringBuilder.
final StringBuilder getFullManifestInfo(final StringBuilder sb)
final String getImplementationSHAClassesThis()
Returns the SHA of all concatenated class files of the local (jar) package subset.
static StringBuilder getPlatformInfo(StringBuilder sb)
Appends environment information like OS, JVM and CPU architecture properties to the StringBuilder.