1 package org.andromda.translation.ocl.testsuite;
2
3
4
5
6
7
8 public class ExpressionTest
9 {
10 private String to;
11 private String from;
12
13
14
15
16
17
18 public String getFrom()
19 {
20 final String methodName = "ExpressionTest.getFrom";
21 if (this.to == null)
22 {
23 throw new TranslationTestProcessorException(methodName + " - from can not be null");
24 }
25 return from;
26 }
27
28
29
30
31
32
33 public void setFrom(String from)
34 {
35 this.from = from;
36 }
37
38
39
40
41
42
43 public String getTo()
44 {
45 final String methodName = "ExpressionTest.getTo";
46 if (this.to == null)
47 {
48 throw new TranslationTestProcessorException(methodName + " - to can not be null");
49 }
50 return to;
51 }
52
53
54
55
56
57
58 public void setTo(String to)
59 {
60 this.to = to;
61 }
62 }