Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: pkg/analysis_server/test/services/refactoring/naming_conventions_test.dart

Issue 2394683006: Switch analysis_server to use 'package:test'. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.services.refactoring.naming_conventions; 5 library test.services.refactoring.naming_conventions;
6 6
7 import 'package:analysis_server/plugin/protocol/protocol.dart' 7 import 'package:analysis_server/plugin/protocol/protocol.dart'
8 show RefactoringProblemSeverity; 8 show RefactoringProblemSeverity;
9 import 'package:analysis_server/src/services/refactoring/naming_conventions.dart '; 9 import 'package:analysis_server/src/services/refactoring/naming_conventions.dart ';
10 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; 10 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; 11 import 'package:test_reflective_loader/test_reflective_loader.dart';
12 12
13 import '../../utils.dart'; 13 import '../../utils.dart';
14 import 'abstract_refactoring.dart'; 14 import 'abstract_refactoring.dart';
15 15
16 main() { 16 main() {
17 initializeTestEnvironment(); 17 initializeTestEnvironment();
18 defineReflectiveTests(NamingConventionsTest); 18 defineReflectiveSuite(() {
19 defineReflectiveTests(NamingConventionsTest);
20 });
19 } 21 }
20 22
21 @reflectiveTest 23 @reflectiveTest
22 class NamingConventionsTest extends RefactoringTest { 24 class NamingConventionsTest extends RefactoringTest {
23 @override 25 @override
24 Refactoring get refactoring => null; 26 Refactoring get refactoring => null;
25 27
26 void test_validateClassName_doesNotStartWithLowerCase() { 28 void test_validateClassName_doesNotStartWithLowerCase() {
27 assertRefactoringStatus( 29 assertRefactoringStatus(
28 validateClassName("newName"), RefactoringProblemSeverity.WARNING, 30 validateClassName("newName"), RefactoringProblemSeverity.WARNING,
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 void test_validateVariableName_OK_middleUnderscore() { 659 void test_validateVariableName_OK_middleUnderscore() {
658 assertRefactoringStatusOK(validateVariableName("new_name")); 660 assertRefactoringStatusOK(validateVariableName("new_name"));
659 } 661 }
660 662
661 void test_validateVariableName_trailingBlanks() { 663 void test_validateVariableName_trailingBlanks() {
662 assertRefactoringStatus( 664 assertRefactoringStatus(
663 validateVariableName("newName "), RefactoringProblemSeverity.FATAL, 665 validateVariableName("newName "), RefactoringProblemSeverity.FATAL,
664 expectedMessage: "Variable name must not start or end with a blank."); 666 expectedMessage: "Variable name must not start or end with a blank.");
665 } 667 }
666 } 668 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698