< prev index next >

test/tools/jdeps/APIDeps.java

Print this page




  73         File mDir = new File(testDir, "m");
  74         // all dependencies
  75         test(new File(mDir, "Bar.class"),
  76              new String[] {"java.lang.Object", "java.lang.String",
  77                            "java.util.Set", "java.util.HashSet",
  78                            "java.lang.management.ManagementFactory",
  79                            "java.lang.management.RuntimeMXBean",
  80                            "b.B", "c.C", "d.D", "f.F", "g.G"},
  81              new String[] {"compact1", "compact3", testDirBasename},
  82              new String[] {"-classpath", testDir.getPath(), "-verbose", "-P"});
  83         test(new File(mDir, "Foo.class"),
  84              new String[] {"c.I", "e.E", "f.F"},
  85              new String[] {testDirBasename},
  86              new String[] {"-classpath", testDir.getPath(), "-verbose:class", "-P"});
  87         test(new File(mDir, "Foo.class"),
  88              new String[] {"c.I", "e.E", "f.F", "m.Bar"},
  89              new String[] {testDirBasename},
  90              new String[] {"-classpath", testDir.getPath(), "-verbose:class", "-filter:none", "-P"});
  91         test(new File(mDir, "Gee.class"),
  92              new String[] {"g.G", "sun.misc.Lock", "com.sun.tools.classfile.ClassFile",
  93                            "com.sun.management.ThreadMXBean", "com.sun.source.tree.BinaryTree"},
  94              new String[] {testDirBasename, "JDK internal API", "compact3", ""},

  95              new String[] {"-classpath", testDir.getPath(), "-verbose", "-P"});
  96 
  97         // -jdkinternals
  98         test(new File(mDir, "Gee.class"),
  99              new String[] {"sun.misc.Lock", "com.sun.tools.classfile.ClassFile"},
 100              new String[] {"JDK internal API"},
 101              new String[] {"-jdkinternals"});
 102         // -jdkinternals parses all classes on -classpath and the input arguments
 103         test(new File(mDir, "Gee.class"),
 104              new String[] {"com.sun.tools.jdeps.Main", "com.sun.tools.classfile.ClassFile",
 105                            "sun.misc.Lock", "sun.misc.Unsafe"},
 106              new String[] {"JDK internal API"},
 107              new String[] {"-classpath", testDir.getPath(), "-jdkinternals"});
 108 
 109         // parse only APIs
 110         test(mDir,
 111              new String[] {"java.lang.Object", "java.lang.String",
 112                            "java.util.Set",
 113                            "c.C", "d.D", "c.I", "e.E"},
 114              new String[] {"compact1", testDirBasename},




  73         File mDir = new File(testDir, "m");
  74         // all dependencies
  75         test(new File(mDir, "Bar.class"),
  76              new String[] {"java.lang.Object", "java.lang.String",
  77                            "java.util.Set", "java.util.HashSet",
  78                            "java.lang.management.ManagementFactory",
  79                            "java.lang.management.RuntimeMXBean",
  80                            "b.B", "c.C", "d.D", "f.F", "g.G"},
  81              new String[] {"compact1", "compact3", testDirBasename},
  82              new String[] {"-classpath", testDir.getPath(), "-verbose", "-P"});
  83         test(new File(mDir, "Foo.class"),
  84              new String[] {"c.I", "e.E", "f.F"},
  85              new String[] {testDirBasename},
  86              new String[] {"-classpath", testDir.getPath(), "-verbose:class", "-P"});
  87         test(new File(mDir, "Foo.class"),
  88              new String[] {"c.I", "e.E", "f.F", "m.Bar"},
  89              new String[] {testDirBasename},
  90              new String[] {"-classpath", testDir.getPath(), "-verbose:class", "-filter:none", "-P"});
  91         test(new File(mDir, "Gee.class"),
  92              new String[] {"g.G", "sun.misc.Lock", "com.sun.tools.classfile.ClassFile",
  93                            "com.sun.management.ThreadMXBean", "com.sun.source.tree.BinaryTree",
  94                            "org.w3c.dom.css.CSSValue"},
  95              new String[] {testDirBasename, "JDK internal API", "compact2", "compact3", ""},
  96              new String[] {"-classpath", testDir.getPath(), "-verbose", "-P"});
  97 
  98         // -jdkinternals
  99         test(new File(mDir, "Gee.class"),
 100              new String[] {"sun.misc.Lock", "com.sun.tools.classfile.ClassFile"},
 101              new String[] {"JDK internal API"},
 102              new String[] {"-jdkinternals"});
 103         // -jdkinternals parses all classes on -classpath and the input arguments
 104         test(new File(mDir, "Gee.class"),
 105              new String[] {"com.sun.tools.jdeps.Main", "com.sun.tools.classfile.ClassFile",
 106                            "sun.misc.Lock", "sun.misc.Unsafe"},
 107              new String[] {"JDK internal API"},
 108              new String[] {"-classpath", testDir.getPath(), "-jdkinternals"});
 109 
 110         // parse only APIs
 111         test(mDir,
 112              new String[] {"java.lang.Object", "java.lang.String",
 113                            "java.util.Set",
 114                            "c.C", "d.D", "c.I", "e.E"},
 115              new String[] {"compact1", testDirBasename},


< prev index next >