< prev index next >

test/langtools/tools/jdeps/Options.java

Print this page




  39 
  40 public class Options {
  41     private static final String TEST_CLASSES = System.getProperty("test.classes");
  42 
  43     @DataProvider(name = "errors")
  44     public Object[][] errors() {
  45         return new Object[][]{
  46             {
  47                 new String[] { "-summary", "-v", TEST_CLASSES },
  48                 "-v, -verbose cannot be used with -s, -summary option"
  49             },
  50             {
  51                 new String[] { "-jdkinternal", "-summary", TEST_CLASSES },
  52                 "-summary or -verbose cannot be used with -jdkinternals option"
  53             },
  54             {
  55                 new String[] { "-jdkinternal", "-p", "java.lang", TEST_CLASSES },
  56                 "--package, --regex, --require cannot be used with  -jdkinternals option"
  57             },
  58             {








  59                 new String[] { "--inverse", TEST_CLASSES },
  60                 "--package (-p), --regex (-e), --require option must be specified"
  61             },
  62             {
  63                 new String[] { "--inverse", "-R", TEST_CLASSES },
  64                 "-R cannot be used with --inverse option"
  65             },
  66             {
  67                 new String[] { "--generate-module-info", "dots", "-cp", TEST_CLASSES },
  68                 "-classpath cannot be used with --generate-module-info option"
  69             },
  70             {
  71                 new String[] { "--list-deps", "-summary", TEST_CLASSES },
  72                 "--list-deps and --list-reduced-deps options are specified"
  73             },
  74             {
  75                 new String[] { "--list-deps", "--list-reduced-deps", TEST_CLASSES },
  76                 "--list-deps and --list-reduced-deps options are specified"
  77             },
  78         };




  39 
  40 public class Options {
  41     private static final String TEST_CLASSES = System.getProperty("test.classes");
  42 
  43     @DataProvider(name = "errors")
  44     public Object[][] errors() {
  45         return new Object[][]{
  46             {
  47                 new String[] { "-summary", "-v", TEST_CLASSES },
  48                 "-v, -verbose cannot be used with -s, -summary option"
  49             },
  50             {
  51                 new String[] { "-jdkinternal", "-summary", TEST_CLASSES },
  52                 "-summary or -verbose cannot be used with -jdkinternals option"
  53             },
  54             {
  55                 new String[] { "-jdkinternal", "-p", "java.lang", TEST_CLASSES },
  56                 "--package, --regex, --require cannot be used with -jdkinternals option"
  57             },
  58             {
  59                 new String[] { "--missing-deps", "-summary", TEST_CLASSES },
  60                 "-summary or -verbose cannot be used with --missing-deps option"
  61             },
  62             {
  63                 new String[] { "--missing-deps", "-p", "java.lang", TEST_CLASSES },
  64                 "--package, --regex, --require cannot be used with --missing-deps option"
  65             },
  66             {
  67                 new String[] { "--inverse", TEST_CLASSES },
  68                 "--package (-p), --regex (-e), --require option must be specified"
  69             },
  70             {
  71                 new String[] { "--inverse", "-R", TEST_CLASSES },
  72                 "-R cannot be used with --inverse option"
  73             },
  74             {
  75                 new String[] { "--generate-module-info", "dots", "-cp", TEST_CLASSES },
  76                 "-classpath cannot be used with --generate-module-info option"
  77             },
  78             {
  79                 new String[] { "--list-deps", "-summary", TEST_CLASSES },
  80                 "--list-deps and --list-reduced-deps options are specified"
  81             },
  82             {
  83                 new String[] { "--list-deps", "--list-reduced-deps", TEST_CLASSES },
  84                 "--list-deps and --list-reduced-deps options are specified"
  85             },
  86         };


< prev index next >