Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ClassTypeAliasTest.java |
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/angular/TestAll.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ClassTypeAliasTest.java |
similarity index 55% |
copy from editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/angular/TestAll.java |
copy to editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ClassTypeAliasTest.java |
index 2f8282ba0bd04916725e65be689353c9714cb585..ad8555d2509ab7126d4c25e3fdd5d258e73c2cfd 100644 |
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/angular/TestAll.java |
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ClassTypeAliasTest.java |
@@ -11,17 +11,16 @@ |
* or implied. See the License for the specific language governing permissions and limitations under |
* the License. |
*/ |
-package com.google.dart.engine.element.angular; |
+package com.google.dart.engine.ast; |
-import com.google.dart.engine.ExtendedTestSuite; |
+import com.google.dart.engine.parser.ParserTestCase; |
+import com.google.dart.engine.scanner.Keyword; |
-import junit.framework.Test; |
-import junit.framework.TestSuite; |
+import static com.google.dart.engine.ast.AstFactory.classTypeAlias; |
-public class TestAll { |
- public static Test suite() { |
- TestSuite suite = new ExtendedTestSuite("Tests in " + TestAll.class.getPackage().getName()); |
- suite.addTestSuite(AngularPropertyKindTest.class); |
- return suite; |
+public class ClassTypeAliasTest extends ParserTestCase { |
+ public void test_isAbstract() throws Exception { |
+ assertFalse(classTypeAlias("A", null, null, null, null, null).isAbstract()); |
+ assertTrue(classTypeAlias("B", null, Keyword.ABSTRACT, null, null, null).isAbstract()); |
} |
} |