You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ExpectedMessageSpec.java 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /* *******************************************************************
  2. * Copyright (c) 2004 IBM Corporation
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * Adrian Colyer,
  11. * ******************************************************************/
  12. package org.aspectj.testing;
  13. import org.aspectj.tools.ajc.AjcTestCase;
  14. /**
  15. * @author colyer
  16. *
  17. * TODO To change the template for this generated type comment go to
  18. * Window - Preferences - Java - Code Style - Code Templates
  19. */
  20. public class ExpectedMessageSpec {
  21. private String kind = "error";
  22. private int line = -1;
  23. private String text;
  24. private String file;
  25. private String details;
  26. public AjcTestCase.Message toMessage() {
  27. return new AjcTestCase.Message(line,file,text,null);
  28. }
  29. /**
  30. * @return Returns the details.
  31. */
  32. public String getDetails() {
  33. return details;
  34. }
  35. /**
  36. * @param details The details to set.
  37. */
  38. public void setDetails(String details) {
  39. this.details = details;
  40. }
  41. /**
  42. * @return Returns the file.
  43. */
  44. public String getFile() {
  45. return file;
  46. }
  47. /**
  48. * @param file The file to set.
  49. */
  50. public void setFile(String file) {
  51. this.file = file;
  52. }
  53. /**
  54. * @return Returns the kind.
  55. */
  56. public String getKind() {
  57. return kind;
  58. }
  59. /**
  60. * @param kind The kind to set.
  61. */
  62. public void setKind(String kind) {
  63. this.kind = kind;
  64. }
  65. /**
  66. * @return Returns the line.
  67. */
  68. public int getLine() {
  69. return line;
  70. }
  71. /**
  72. * @param line The line to set.
  73. */
  74. public void setLine(int line) {
  75. this.line = line;
  76. }
  77. /**
  78. * @return Returns the text.
  79. */
  80. public String getText() {
  81. return text;
  82. }
  83. /**
  84. * @param text The text to set.
  85. */
  86. public void setText(String text) {
  87. this.text = text;
  88. }
  89. }