1 | public class NiceTest extends BuildFileTest {↵ | | 1 | public class IsFileSelectedTest extends BuildFileTest {↵
|
|
2 | public NiceTest(String name) {↵ | | 2 | public IsFileSelectedTest(String name) {↵
|
3 | super(name);↵ | | 3 | super(name);↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void setUp() {↵ | | 5 | public void setUp() {↵
|
6 | configureProject("src/etc/testcases/taskdefs/nice.xml");↵ | | 6 | configureProject("src/etc/testcases/taskdefs/conditions/isfileselected.xml");↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void testNoop() {↵ | | 8 | public void testSimple() {↵
|
9 | executeTarget("noop");↵ | | 9 | executeTarget("simple");↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public void testCurrent() {↵ | | 11 | public void testName() {↵
|
12 | executeTarget("current");↵ | | 12 | executeTarget("name");↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void testFaster() {↵ | | 14 | public void testBaseDir() {↵
|
15 | executeTarget("faster");↵ | | 15 | executeTarget("basedir");↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public void testSlower() {↵ | | 17 | public void testType() {↵
|
18 | executeTarget("slower");↵ | | 18 | executeTarget("type");↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public void testTooSlow() {↵ | | 20 | public void testNotSelector() {↵
|
21 | expectBuildExceptionContaining(↵ | | 21 | expectBuildExceptionContaining(↵
|
22 | "too_slow","out of range","out of the range 1-10");↵ | | 22 | ↵
|
23 | }↵ | | |
|
|
24 | public void testTooFast() {↵ | | |
|
25 | expectBuildExceptionContaining(↵ | | |
|
26 | "too_fast", "out of range", "out of the range 1-10↵ | | 23 | "not.selector", "checking for use as a selector (not allowed)",↵
|
27 | ");↵ | | 24 | "fileset doesn't support the nested \"isfile");↵
|
28 | | | 25 |
|