29import java.io.IOException;
30import java.util.Iterator;
32import java.util.Properties;
34import org.junit.FixMethodOrder;
36import org.junit.runners.MethodSorters;
38import jau.test.junit.util.JunitTracer;
40@FixMethodOrder(MethodSorters.NAME_ASCENDING)
46 final Properties props = System.getProperties();
47 final Iterator<Map.Entry<Object,Object>> iter = props.entrySet().iterator();
48 while (iter.hasNext()) {
50 final Map.Entry<Object, Object> entry = iter.next();
51 System.out.format(
"%4d: %s = %s%n", i, entry.getKey(), entry.getValue());
53 System.out.println(
"Property count: "+i);
56 private static String[] suppress_envs =
new String[] {
"COOKIE",
"SSH",
"GPG" };
58 private static boolean contains(
final String data,
final String[] search) {
59 if(
null != data &&
null != search) {
60 for(
int i=0; i<search.length; i++) {
61 if(data.indexOf(search[i]) >= 0) {
72 final Map<String, String> env = System.getenv();
73 for (
final String envName : env.keySet()) {
74 if(!contains(envName, suppress_envs)) {
76 System.out.format(
"%4d: %s = %s%n",
81 System.out.println(
"Environment count: "+i);
84 public static void main(
final String args[])
throws IOException {
86 org.junit.runner.JUnitCore.
main(tstname);
static void main(final String args[])