Index: pkg/analysis_server/test/domain_server_test.dart |
diff --git a/pkg/analysis_server/test/domain_server_test.dart b/pkg/analysis_server/test/domain_server_test.dart |
index dc76e8425a5671727bf7d6fcba1e45f268896043..94a932d16e5eea101810c7a6ddd25763b49bf66b 100644 |
--- a/pkg/analysis_server/test/domain_server_test.dart |
+++ b/pkg/analysis_server/test/domain_server_test.dart |
@@ -22,14 +22,9 @@ main() { |
setUp(() { |
var serverChannel = new MockServerChannel(); |
var resourceProvider = new MemoryResourceProvider(); |
- server = new AnalysisServer( |
- serverChannel, |
- resourceProvider, |
- new MockPackageMapProvider(), |
- null, |
- new AnalysisServerOptions(), |
- new MockSdk(), |
- InstrumentationService.NULL_SERVICE); |
+ server = new AnalysisServer(serverChannel, resourceProvider, |
+ new MockPackageMapProvider(), null, new AnalysisServerOptions(), |
+ new MockSdk(), InstrumentationService.NULL_SERVICE); |
handler = new ServerDomainHandler(server); |
}); |
@@ -39,17 +34,14 @@ main() { |
var response = handler.handleRequest(request); |
expect(response.toJson(), equals({ |
Response.ID: '0', |
- Response.RESULT: { |
- VERSION: AnalysisServer.VERSION |
- } |
+ Response.RESULT: {VERSION: AnalysisServer.VERSION} |
})); |
}); |
group('setSubscriptions', () { |
test('invalid service name', () { |
- Request request = new Request('0', SERVER_SET_SUBSCRIPTIONS, { |
- SUBSCRIPTIONS: ['noSuchService'] |
- }); |
+ Request request = new Request( |
+ '0', SERVER_SET_SUBSCRIPTIONS, {SUBSCRIPTIONS: ['noSuchService']}); |
var response = handler.handleRequest(request); |
expect(response, isResponseFailure('0')); |
}); |
@@ -58,7 +50,8 @@ main() { |
expect(server.serverServices, isEmpty); |
// send request |
Request request = |
- new ServerSetSubscriptionsParams([ServerService.STATUS]).toRequest('0'); |
+ new ServerSetSubscriptionsParams([ServerService.STATUS]) |
+ .toRequest('0'); |
var response = handler.handleRequest(request); |
expect(response, isResponseSuccess('0')); |
// set of services has been changed |