equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
71 .run(Task.Expect.FAIL) |
71 .run(Task.Expect.FAIL) |
72 .writeAll() |
72 .writeAll() |
73 .getOutput(Task.OutputKind.DIRECT); |
73 .getOutput(Task.OutputKind.DIRECT); |
74 |
74 |
75 checkOutputContains(log, |
75 checkOutputContains(log, |
76 "javac: no value for --add-modules option"); |
76 "error: no value for --add-modules option"); |
77 } |
77 } |
78 |
78 |
79 @Test |
79 @Test |
80 public void testEmptyItem(Path base) throws Exception { |
80 public void testEmptyItem(Path base) throws Exception { |
81 Path src = base.resolve("src"); |
81 Path src = base.resolve("src"); |
118 .run(Task.Expect.FAIL) |
118 .run(Task.Expect.FAIL) |
119 .writeAll() |
119 .writeAll() |
120 .getOutput(Task.OutputKind.DIRECT); |
120 .getOutput(Task.OutputKind.DIRECT); |
121 |
121 |
122 checkOutputContains(log, |
122 checkOutputContains(log, |
123 "javac: bad value for --add-modules option"); |
123 "error: bad value for --add-modules option"); |
124 } |
124 } |
125 |
125 |
126 @Test |
126 @Test |
127 public void testInvalidName(Path base) throws Exception { |
127 public void testInvalidName(Path base) throws Exception { |
128 Path src = base.resolve("src"); |
128 Path src = base.resolve("src"); |