test/tools/jdeps/Basic.java

changeset 2802
6b43535fb9f8
parent 2538
1e39ae45d8ac
child 2893
ca5783d9a597
     1.1 --- a/test/tools/jdeps/Basic.java	Mon May 18 09:27:09 2015 +0200
     1.2 +++ b/test/tools/jdeps/Basic.java	Wed May 20 17:11:28 2015 -0700
     1.3 @@ -23,9 +23,9 @@
     1.4  
     1.5  /*
     1.6   * @test
     1.7 - * @bug 8003562 8005428 8015912 8027481 8048063
     1.8 + * @bug 8003562 8005428 8015912 8027481 8048063 8068937
     1.9   * @summary Basic tests for jdeps tool
    1.10 - * @build Test p.Foo p.Bar javax.activity.NotCompactProfile
    1.11 + * @build Test p.Foo p.Bar p.C p.SubClass q.Gee javax.activity.NotCompactProfile
    1.12   * @run main Basic
    1.13   */
    1.14  
    1.15 @@ -111,6 +111,19 @@
    1.16               new String[] {"compact1"},
    1.17               new String[] {"-verbose:package", "-e", "java\\.lang\\..*"});
    1.18  
    1.19 +        // parse p.C, p.SubClass and q.*
    1.20 +        // p.SubClass have no dependency other than p.C
    1.21 +        // q.Gee depends on p.SubClass that should be found
    1.22 +        test(testDir,
    1.23 +             new String[] {"java.lang", "p"},
    1.24 +             new String[] {"compact1", testDir.getName()},
    1.25 +             new String[] {"-include", "p.C|p.SubClass|q\\..*"});
    1.26 +        test(testDir,
    1.27 +             new String[] {"java.lang", "p"},
    1.28 +             new String[] {"compact1", testDir.getName()},
    1.29 +             new String[] {"-classpath", testDir.getPath(), "-include", "p.C|p.SubClass|q\\..*"});
    1.30 +
    1.31 +
    1.32          // test -classpath and -include options
    1.33          test(null,
    1.34               new String[] {"java.lang", "java.util", "java.lang.management",

mercurial