[jboss-svn-commits] JBL Code SVN: r9873 - labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/actions.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Mar 1 08:18:50 EST 2007
Author: driedtoast
Date: 2007-03-01 08:18:50 -0500 (Thu, 01 Mar 2007)
New Revision: 9873
Added:
labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/actions/MockPojoAction.java
Log:
Adding for compiling of tests. Moving to workspace development after this
Added: labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/actions/MockPojoAction.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/actions/MockPojoAction.java (rev 0)
+++ labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/actions/MockPojoAction.java 2007-03-01 13:18:50 UTC (rev 9873)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.esb.actions;
+
+import java.util.List;
+
+
+/**
+ * Used to test pojo related functionality.
+ *
+ * @author danielmarchant
+ *
+ */
+public class MockPojoAction {
+
+ public static MockPojo getMockPojo() {
+ return new MockPojoAction.MockPojo();
+ }
+
+ public static class MockPojo {
+ public MockPojo() {
+
+ }
+ public String name;
+ public String value;
+ public List list;
+
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public String getValue() {
+ return value;
+ }
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public List<MockPojo> getList() {
+ return list;
+ }
+
+ public void setList(List listIn ){
+ list = listIn;
+ }
+
+ }
+
+ public String message = "WentThrough";
+
+ public MockPojo doPojoAction(MockPojo pojo) {
+ pojo.setName(message);
+ return pojo;
+ }
+
+}
More information about the jboss-svn-commits
mailing list