1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to you under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 package org.apache.shale.test.mock;
19
20 import java.io.Serializable;
21
22 /***
23 * <p>Test JavaBean for testing mock objects themselves.</p>
24 *
25 * $Id$
26 */
27 public class TestMockBean implements Serializable {
28
29 private static final long serialVersionUID = 8879968751506858610L;
30 private String command;
31 public String getCommand() {
32 return (this.command);
33 }
34 public void setCommand(String command) {
35 this.command = command;
36 }
37
38 private String input;
39 public String getInput() {
40 return (this.input);
41 }
42 public void setInput(String input) {
43 this.input = input;
44 }
45
46 private String output;
47 public String getOutput() {
48 return (this.output);
49 }
50 public void setOutput(String output) {
51 this.output = output;
52 }
53
54 public String combine() {
55 return ((command == null ? "" : command) + ":" +
56 (input == null ? "" : input) + ":" +
57 (output == null ? "" : output));
58 }
59
60 }