test_class.declarator: dispatcher
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private CommandDispatcher dispatcher;
test_class.type: CommandDispatcher
test_class.var_name: dispatcher
test_class.declarator: styleService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private StyleService styleService;
test_class.type: StyleService
test_class.var_name: styleService
test_class.file: command/src/test/java/org/geomajas/command/render/RegisterNamedStyleInfoCommandTest.java
test_class.identifier: RegisterNamedStyleInfoCommandTest
test_case.body: @Test
  	public void testRegisterStyle() throws Exception {
  		NamedStyleInfo nsi = new NamedStyleInfo();
  		nsi.setName("test");
  
  		RegisterNamedStyleInfoRequest req = new RegisterNamedStyleInfoRequest();
  		req.setLayerId("countries");
  		req.setNamedStyleInfo(nsi);
  
  		CommandResponse response = dispatcher.execute(
  				RegisterNamedStyleInfoRequest.COMMAND, req, null, "en");
  		
  		if (response.isError()) {
  			response.getErrors().get(0).printStackTrace();
  		}
  		Assert.assertFalse(response.isError());
  		Assert.assertTrue(response instanceof RegisterNamedStyleInfoResponse);
  		Assert.assertEquals(nsi, styleService.retrieveStyle("countries", ((RegisterNamedStyleInfoResponse) response).getStyleName()));
  
  	}
test_case.class_method_signature: RegisterNamedStyleInfoCommandTest.testRegisterStyle()
test_case.full_signature: @Test public void testRegisterStyle()
test_case.identifier: testRegisterStyle
test_case.invocations: setName setLayerId setNamedStyleInfo execute isError printStackTrace get getErrors assertFalse isError assertTrue assertEquals retrieveStyle getStyleName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRegisterStyle()
focal_class.declarator: styleService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private StyleService styleService;
focal_class.type: StyleService
focal_class.var_name: styleService
focal_class.file: command/src/main/java/org/geomajas/command/render/RegisterNamedStyleInfoCommand.java
focal_class.identifier: RegisterNamedStyleInfoCommand
focal_class.interfaces: implements
  		CommandHasRequest<RegisterNamedStyleInfoRequest, RegisterNamedStyleInfoResponse>
focal_class.class_method_signature: RegisterNamedStyleInfoCommand.getEmptyCommandRequest()
focal_class.full_signature: @Override public RegisterNamedStyleInfoRequest getEmptyCommandRequest()
focal_class.identifier: getEmptyCommandRequest
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: RegisterNamedStyleInfoRequest
focal_class.signature: RegisterNamedStyleInfoRequest getEmptyCommandRequest()
focal_class.class_method_signature: RegisterNamedStyleInfoCommand.getEmptyCommandResponse()
focal_class.full_signature: @Override public RegisterNamedStyleInfoResponse getEmptyCommandResponse()
focal_class.identifier: getEmptyCommandResponse
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: RegisterNamedStyleInfoResponse
focal_class.signature: RegisterNamedStyleInfoResponse getEmptyCommandResponse()
focal_class.class_method_signature: RegisterNamedStyleInfoCommand.execute(RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)
focal_class.full_signature: @Override public void execute(RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)
focal_class.return: void
focal_class.signature: void execute(RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)
focal_method.body: @Override
  	public void execute(RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)
  			throws Exception {
  		response.setStyleName(styleService.registerStyle(request.getLayerId(), request.getNamedStyleInfo()));
  	}
focal_method.class_method_signature: RegisterNamedStyleInfoCommand.execute(RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)
focal_method.full_signature: @Override public void execute(RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)
focal_method.identifier: execute
focal_method.invocations: setStyleName registerStyle getLayerId getNamedStyleInfo
focal_method.modifiers: @Override public
focal_method.parameters: (RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)
focal_method.return: void
focal_method.signature: void execute(RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)