diff options
Diffstat (limited to 'ant-glob-tests')
-rw-r--r-- | ant-glob-tests/.classpath | 8 | ||||
-rw-r--r-- | ant-glob-tests/.gitignore | 6 | ||||
-rw-r--r-- | ant-glob-tests/.project | 17 | ||||
-rw-r--r-- | ant-glob-tests/src/org/apache/tools/ant/types/selectors/SelectorUtilsTest.java | 37 |
4 files changed, 0 insertions, 68 deletions
diff --git a/ant-glob-tests/.classpath b/ant-glob-tests/.classpath deleted file mode 100644 index 0a4978e..0000000 --- a/ant-glob-tests/.classpath +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/> - <classpathentry combineaccessrules="false" kind="src" path="/ant-glob"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/ant-glob-tests/.gitignore b/ant-glob-tests/.gitignore deleted file mode 100644 index 3826f65..0000000 --- a/ant-glob-tests/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -bin -*~ -*.bak -Thumbs.db -*.class -*.DS_Store diff --git a/ant-glob-tests/.project b/ant-glob-tests/.project deleted file mode 100644 index 4686cc9..0000000 --- a/ant-glob-tests/.project +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>ant-glob-tests</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> diff --git a/ant-glob-tests/src/org/apache/tools/ant/types/selectors/SelectorUtilsTest.java b/ant-glob-tests/src/org/apache/tools/ant/types/selectors/SelectorUtilsTest.java deleted file mode 100644 index 943ebd5..0000000 --- a/ant-glob-tests/src/org/apache/tools/ant/types/selectors/SelectorUtilsTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2012 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.tools.ant.types.selectors; - -import junit.framework.TestCase; - - -public class SelectorUtilsTest extends TestCase { - - public void test1() { - assertTrue(SelectorUtils.matchPath("**", "a")); - - assertTrue(SelectorUtils.matchPath("a/**/b", "a/c/d/b")); - assertTrue(SelectorUtils.matchPath("a/**/b", "a/b")); - assertFalse(SelectorUtils.matchPath("a/**/b", "a/b/c")); - - assertTrue(SelectorUtils.matchPath("a/**", "a")); - assertTrue(SelectorUtils.matchPath("a/**", "a/b")); - - assertTrue(SelectorUtils.matchPath("bin/**/*.class", "bin/a/foo.class")); - assertFalse(SelectorUtils.matchPath("bin/**/*.class", "bin/a/fooclass")); - } -} |