| OLD | NEW |
| 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.domain.server; | 5 library test.domain.server; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/analysis_server.dart'; | 7 import 'package:analysis_server/src/analysis_server.dart'; |
| 8 import 'package:analysis_server/src/domain_server.dart'; | 8 import 'package:analysis_server/src/domain_server.dart'; |
| 9 import 'package:analysis_server/src/protocol.dart'; | 9 import 'package:analysis_server/src/protocol.dart'; |
| 10 import 'package:unittest/matcher.dart'; | |
| 11 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 12 | 11 |
| 13 import 'mocks.dart'; | 12 import 'mocks.dart'; |
| 14 | 13 |
| 15 main() { | 14 main() { |
| 16 group('ServerDomainHandler', () { | 15 group('ServerDomainHandler', () { |
| 17 // test('createContext', ServerDomainHandlerTest.createContext); | 16 // test('createContext', ServerDomainHandlerTest.createContext); |
| 18 // test('deleteContext_alreadyDeleted', ServerDomainHandlerTest.deleteContext
_alreadyDeleted); | 17 // test('deleteContext_alreadyDeleted', ServerDomainHandlerTest.deleteContext
_alreadyDeleted); |
| 19 test('deleteContext_doesNotExist', ServerDomainHandlerTest.deleteContext_doe
sNotExist); | 18 test('deleteContext_doesNotExist', ServerDomainHandlerTest.deleteContext_doe
sNotExist); |
| 20 // test('deleteContext_existing', ServerDomainHandlerTest.deleteContext_exist
ing); | 19 // test('deleteContext_existing', ServerDomainHandlerTest.deleteContext_exist
ing); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 Response response = handler.handleRequest(versionRequest); | 104 Response response = handler.handleRequest(versionRequest); |
| 106 expect(response.toJson(), equals({ | 105 expect(response.toJson(), equals({ |
| 107 Response.ID: '0', | 106 Response.ID: '0', |
| 108 Response.ERROR: null, | 107 Response.ERROR: null, |
| 109 Response.RESULT: { | 108 Response.RESULT: { |
| 110 ServerDomainHandler.VERSION_RESULT: '0.0.1' | 109 ServerDomainHandler.VERSION_RESULT: '0.0.1' |
| 111 } | 110 } |
| 112 })); | 111 })); |
| 113 } | 112 } |
| 114 } | 113 } |
| OLD | NEW |