[jboss-svn-commits] JBL Code SVN: r38023 - in labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5: lib/ext/build-time and 10 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Apr 15 22:23:54 EDT 2012
Author: tcunning
Date: 2012-04-15 22:23:52 -0400 (Sun, 15 Apr 2012)
New Revision: 38023
Added:
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/lib/ext/build-time/antlr-runtime-3.3.jar
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/lib/ext/build-time/core-3.4.2.v_883_R34x.jar
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/lib/ext/build-time/drools-compiler-5.3.1.Final.jar
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/Bpm5ParameterMapperUnitTest.java
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockConnection.java
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockContext.java
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockDataBaseMetaData.java
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockDataSource.java
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockInitialContextFactory.java
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockTransactionManager.java
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockUserTransaction.java
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/actions/
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/actions/Bpm5ProcessorUnitTest.java
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/resources/
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/resources/Evaluation.bpmn
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/resources/jndi.properties
Log:
JBESB-3782
Add JBPM5Processor unit tests.
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/lib/ext/build-time/antlr-runtime-3.3.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/lib/ext/build-time/antlr-runtime-3.3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/lib/ext/build-time/core-3.4.2.v_883_R34x.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/lib/ext/build-time/core-3.4.2.v_883_R34x.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/lib/ext/build-time/drools-compiler-5.3.1.Final.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/lib/ext/build-time/drools-compiler-5.3.1.Final.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/Bpm5ParameterMapperUnitTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/Bpm5ParameterMapperUnitTest.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/Bpm5ParameterMapperUnitTest.java 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,85 @@
+package org.jboss.soa.esb.services.jbpm5;
+
+import java.util.Map;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
+import org.jboss.soa.esb.services.jbpm5.actions.BpmParameterMapper;
+
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+
+import org.junit.Test;
+import org.junit.BeforeClass;
+import org.apache.log4j.Logger;
+
+
+/**
+ * Test the BPMParameterMapper.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ * @since Version 4.11
+ */
+public class Bpm5ParameterMapperUnitTest {
+ private ConfigTree config = null;
+
+ private static final Logger logger = Logger.getLogger(Bpm5ParameterMapperUnitTest.class);
+
+ @BeforeClass
+ public static void setup()
+ {
+ logger.info("Setting up jBPM");
+ }
+
+ @Test
+ public void testNoValues() throws Exception
+ {
+ ConfigTree configNoValue = new ConfigTree("<property name=\"esbToBpmParams\"/>");
+ Message message = MessageFactory.getInstance().getMessage() ;
+ message.getProperties().setProperty("employee", "joe");
+ message.getProperties().setProperty("reason", "theheckofit");
+ Map<String, Object> map = BpmParameterMapper.mapPropertiesToParams(message, configNoValue);
+ assertEquals(map.size(), 0);
+ }
+
+ @Test
+ public void testEsbToBpm() throws Exception
+ {
+ config = ConfigTree.fromXml("<property name=\"esbToBpmParams\">"
+ + "<mapping esb=\"employee\" bpm=\"employee\"/>"
+ + "<mapping esb=\"reason\" bpm=\"reason\"/>"
+ + "</property>");
+
+ Message message = MessageFactory.getInstance().getMessage() ;
+ message.getProperties().setProperty("employee", "joe");
+ message.getProperties().setProperty("reason", "theheckofit");
+ Map<String, Object> map = BpmParameterMapper.mapPropertiesToParams(message, config);
+ String employee = (String)map.get("employee");
+ String reason = (String)map.get("reason");
+ assertEquals(employee, "joe");
+ assertEquals(reason, "theheckofit");
+ }
+
+ @Test
+ public void testValue() throws Exception
+ {
+ config = ConfigTree.fromXml("<property name=\"esbToBpmParams\">"
+ + "<mapping esb=\"employee\" bpm=\"employee\" value=\"krisv\"/>"
+ + "<mapping esb=\"reason\" bpm=\"reason\" value=\"foobar\"/>"
+ + "</property>");
+
+
+ Message message = MessageFactory.getInstance().getMessage() ;
+ message.getProperties().setProperty("employee", "joe");
+ message.getProperties().setProperty("reason", "theheckofit");
+ Map<String, Object> map = BpmParameterMapper.mapPropertiesToParams(message, config);
+ String employee = (String)map.get("employee");
+ String reason = (String)map.get("reason");
+ assertEquals(employee, "krisv");
+ assertEquals(reason, "foobar");
+ }
+}
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockConnection.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockConnection.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockConnection.java 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,338 @@
+package org.jboss.soa.esb.services.jbpm5;
+
+import java.sql.Array;
+import java.sql.Blob;
+import java.sql.CallableStatement;
+import java.sql.Clob;
+import java.sql.Connection;
+import java.sql.DatabaseMetaData;
+import java.sql.NClob;
+import java.sql.PreparedStatement;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLException;
+import java.sql.SQLWarning;
+import java.sql.SQLXML;
+import java.sql.Savepoint;
+import java.sql.Statement;
+import java.sql.Struct;
+import java.util.Map;
+import java.util.Properties;
+
+/**
+ * MockConnection needed for the BPM5ProcessorUnitTest.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ */
+public class MockConnection implements Connection {
+
+ @Override
+ public <T> T unwrap(Class<T> iface) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isWrapperFor(Class<?> iface) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public Statement createStatement() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public PreparedStatement prepareStatement(String sql) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public CallableStatement prepareCall(String sql) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String nativeSQL(String sql) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void setAutoCommit(boolean autoCommit) throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public boolean getAutoCommit() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void commit() throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void rollback() throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void close() throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public boolean isClosed() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public DatabaseMetaData getMetaData() throws SQLException {
+ // TODO Auto-generated method stub
+ return new MockDataBaseMetaData();
+ }
+
+ @Override
+ public void setReadOnly(boolean readOnly) throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public boolean isReadOnly() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void setCatalog(String catalog) throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public String getCatalog() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void setTransactionIsolation(int level) throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public int getTransactionIsolation() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public SQLWarning getWarnings() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void clearWarnings() throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public Statement createStatement(int resultSetType, int resultSetConcurrency)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public PreparedStatement prepareStatement(String sql, int resultSetType,
+ int resultSetConcurrency) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public CallableStatement prepareCall(String sql, int resultSetType,
+ int resultSetConcurrency) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Map<String, Class<?>> getTypeMap() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setHoldability(int holdability) throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public int getHoldability() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public Savepoint setSavepoint() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Savepoint setSavepoint(String name) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void rollback(Savepoint savepoint) throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void releaseSavepoint(Savepoint savepoint) throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public Statement createStatement(int resultSetType,
+ int resultSetConcurrency, int resultSetHoldability)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public PreparedStatement prepareStatement(String sql, int resultSetType,
+ int resultSetConcurrency, int resultSetHoldability)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public CallableStatement prepareCall(String sql, int resultSetType,
+ int resultSetConcurrency, int resultSetHoldability)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public PreparedStatement prepareStatement(String sql, String[] columnNames)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Clob createClob() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Blob createBlob() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public NClob createNClob() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public SQLXML createSQLXML() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isValid(int timeout) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void setClientInfo(String name, String value)
+ throws SQLClientInfoException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setClientInfo(Properties properties)
+ throws SQLClientInfoException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public String getClientInfo(String name) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Properties getClientInfo() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Array createArrayOf(String typeName, Object[] elements)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Struct createStruct(String typeName, Object[] attributes)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockContext.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockContext.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockContext.java 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,215 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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.services.jbpm5;
+
+import java.util.Hashtable;
+
+import javax.naming.Binding;
+import javax.naming.Context;
+import javax.naming.Name;
+import javax.naming.NameClassPair;
+import javax.naming.NameParser;
+import javax.naming.NamingEnumeration;
+import javax.naming.NamingException;
+
+/**
+ * MockContext needed for the BPM5ProcessorUnitTest.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ */
+public class MockContext implements Context
+{
+ private final Hashtable<Object, Object> environment ;
+ private final static Hashtable<String, Object> jndiEnv = new Hashtable<String, Object>();
+
+ MockContext(final Hashtable<?, ?> environment)
+ {
+ this.environment = new Hashtable<Object, Object>(environment);
+ }
+
+ public Object addToEnvironment(final String propName, final Object propVal)
+ throws NamingException
+ {
+ return environment.put(propName, propVal);
+ }
+
+ public void bind(final Name name, final Object obj)
+ throws NamingException
+ {
+ }
+
+ public void bind(final String name, final Object obj)
+ throws NamingException
+ {
+ }
+
+ public void close()
+ throws NamingException
+ {
+ }
+
+ public Name composeName(final Name name, final Name prefix)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public String composeName(final String name, final String prefix)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public Context createSubcontext(final Name name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public Context createSubcontext(final String name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public void destroySubcontext(final Name name)
+ throws NamingException
+ {
+ }
+
+ public void destroySubcontext(final String name)
+ throws NamingException
+ {
+ }
+
+ public Hashtable<?, ?> getEnvironment()
+ throws NamingException
+ {
+ return environment ;
+ }
+
+ public String getNameInNamespace()
+ throws NamingException
+ {
+ return null;
+ }
+
+ public NameParser getNameParser(final Name name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public NameParser getNameParser(final String name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public NamingEnumeration<NameClassPair> list(final Name name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public NamingEnumeration<NameClassPair> list(final String name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public NamingEnumeration<Binding> listBindings(final Name name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public NamingEnumeration<Binding> listBindings(final String name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public Object lookup(final Name name)
+ throws NamingException
+ {
+ return jndiEnv.get(name.toString());
+ }
+
+ public Object lookup(final String name)
+ throws NamingException
+ {
+ return jndiEnv.get(name);
+ }
+
+ public Object lookupLink(final Name name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public Object lookupLink(final String name)
+ throws NamingException
+ {
+ return null;
+ }
+
+ public void rebind(final Name name, final Object obj)
+ throws NamingException
+ {
+ jndiEnv.put(name.toString(), obj);
+ }
+
+ public void rebind(final String name, final Object obj)
+ throws NamingException
+ {
+ jndiEnv.put(name, obj);
+ }
+
+ public Object removeFromEnvironment(final String propName)
+ throws NamingException
+ {
+ return environment.remove(propName) ;
+ }
+
+ public void rename(final Name oldName, final Name newName)
+ throws NamingException
+ {
+ }
+
+ public void rename(final String oldName, final String newName)
+ throws NamingException
+ {
+ }
+
+ public void unbind(final Name name)
+ throws NamingException
+ {
+ jndiEnv.remove(name.toString());
+ }
+
+ public void unbind(final String name)
+ throws NamingException
+ {
+ jndiEnv.remove(name);
+ }
+}
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockDataBaseMetaData.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockDataBaseMetaData.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockDataBaseMetaData.java 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,1091 @@
+package org.jboss.soa.esb.services.jbpm5;
+
+import java.sql.Connection;
+import java.sql.DatabaseMetaData;
+import java.sql.ResultSet;
+import java.sql.RowIdLifetime;
+import java.sql.SQLException;
+
+/**
+ * MockDataBaseMetaData needed for the BPM5ProcessorUnitTest.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ */
+public class MockDataBaseMetaData implements DatabaseMetaData {
+
+ @Override
+ public <T> T unwrap(Class<T> iface) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isWrapperFor(Class<?> iface) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean allProceduresAreCallable() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean allTablesAreSelectable() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public String getURL() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getUserName() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isReadOnly() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean nullsAreSortedHigh() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean nullsAreSortedLow() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean nullsAreSortedAtStart() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean nullsAreSortedAtEnd() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public String getDatabaseProductName() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getDatabaseProductVersion() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getDriverName() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getDriverVersion() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getDriverMajorVersion() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getDriverMinorVersion() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public boolean usesLocalFiles() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean usesLocalFilePerTable() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsMixedCaseIdentifiers() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean storesUpperCaseIdentifiers() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean storesLowerCaseIdentifiers() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean storesMixedCaseIdentifiers() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean storesUpperCaseQuotedIdentifiers() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean storesLowerCaseQuotedIdentifiers() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean storesMixedCaseQuotedIdentifiers() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public String getIdentifierQuoteString() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getSQLKeywords() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getNumericFunctions() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getStringFunctions() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getSystemFunctions() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getTimeDateFunctions() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getSearchStringEscape() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getExtraNameCharacters() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean supportsAlterTableWithAddColumn() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsAlterTableWithDropColumn() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsColumnAliasing() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean nullPlusNonNullIsNull() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsConvert() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsConvert(int fromType, int toType)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsTableCorrelationNames() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsDifferentTableCorrelationNames() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsExpressionsInOrderBy() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsOrderByUnrelated() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsGroupBy() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsGroupByUnrelated() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsGroupByBeyondSelect() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsLikeEscapeClause() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsMultipleResultSets() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsMultipleTransactions() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsNonNullableColumns() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsMinimumSQLGrammar() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsCoreSQLGrammar() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsExtendedSQLGrammar() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsANSI92EntryLevelSQL() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsANSI92IntermediateSQL() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsANSI92FullSQL() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsIntegrityEnhancementFacility() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsOuterJoins() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsFullOuterJoins() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsLimitedOuterJoins() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public String getSchemaTerm() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getProcedureTerm() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getCatalogTerm() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isCatalogAtStart() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public String getCatalogSeparator() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean supportsSchemasInDataManipulation() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsSchemasInProcedureCalls() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsSchemasInTableDefinitions() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsSchemasInIndexDefinitions() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsSchemasInPrivilegeDefinitions() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsCatalogsInDataManipulation() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsCatalogsInProcedureCalls() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsCatalogsInTableDefinitions() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsCatalogsInIndexDefinitions() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsCatalogsInPrivilegeDefinitions() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsPositionedDelete() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsPositionedUpdate() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsSelectForUpdate() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsStoredProcedures() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsSubqueriesInComparisons() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsSubqueriesInExists() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsSubqueriesInIns() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsSubqueriesInQuantifieds() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsCorrelatedSubqueries() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsUnion() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsUnionAll() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsOpenCursorsAcrossCommit() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsOpenCursorsAcrossRollback() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsOpenStatementsAcrossCommit() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsOpenStatementsAcrossRollback() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public int getMaxBinaryLiteralLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxCharLiteralLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxColumnNameLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxColumnsInGroupBy() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxColumnsInIndex() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxColumnsInOrderBy() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxColumnsInSelect() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxColumnsInTable() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxConnections() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxCursorNameLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxIndexLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxSchemaNameLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxProcedureNameLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxCatalogNameLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxRowSize() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public boolean doesMaxRowSizeIncludeBlobs() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public int getMaxStatementLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxStatements() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxTableNameLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxTablesInSelect() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getMaxUserNameLength() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getDefaultTransactionIsolation() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public boolean supportsTransactions() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsTransactionIsolationLevel(int level)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsDataDefinitionAndDataManipulationTransactions()
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsDataManipulationTransactionsOnly()
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean dataDefinitionCausesTransactionCommit() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean dataDefinitionIgnoredInTransactions() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public ResultSet getProcedures(String catalog, String schemaPattern,
+ String procedureNamePattern) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getProcedureColumns(String catalog, String schemaPattern,
+ String procedureNamePattern, String columnNamePattern)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getTables(String catalog, String schemaPattern,
+ String tableNamePattern, String[] types) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getSchemas() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getCatalogs() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getTableTypes() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getColumns(String catalog, String schemaPattern,
+ String tableNamePattern, String columnNamePattern)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getColumnPrivileges(String catalog, String schema,
+ String table, String columnNamePattern) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getTablePrivileges(String catalog, String schemaPattern,
+ String tableNamePattern) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getBestRowIdentifier(String catalog, String schema,
+ String table, int scope, boolean nullable) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getVersionColumns(String catalog, String schema,
+ String table) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getPrimaryKeys(String catalog, String schema, String table)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getImportedKeys(String catalog, String schema, String table)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getExportedKeys(String catalog, String schema, String table)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getCrossReference(String parentCatalog,
+ String parentSchema, String parentTable, String foreignCatalog,
+ String foreignSchema, String foreignTable) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getTypeInfo() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getIndexInfo(String catalog, String schema, String table,
+ boolean unique, boolean approximate) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean supportsResultSetType(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsResultSetConcurrency(int type, int concurrency)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean ownUpdatesAreVisible(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean ownDeletesAreVisible(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean ownInsertsAreVisible(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean othersUpdatesAreVisible(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean othersDeletesAreVisible(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean othersInsertsAreVisible(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean updatesAreDetected(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean deletesAreDetected(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean insertsAreDetected(int type) throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsBatchUpdates() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public ResultSet getUDTs(String catalog, String schemaPattern,
+ String typeNamePattern, int[] types) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Connection getConnection() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean supportsSavepoints() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsNamedParameters() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsMultipleOpenResults() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsGetGeneratedKeys() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public ResultSet getSuperTypes(String catalog, String schemaPattern,
+ String typeNamePattern) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getSuperTables(String catalog, String schemaPattern,
+ String tableNamePattern) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getAttributes(String catalog, String schemaPattern,
+ String typeNamePattern, String attributeNamePattern)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean supportsResultSetHoldability(int holdability)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public int getResultSetHoldability() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getDatabaseMajorVersion() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getDatabaseMinorVersion() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getJDBCMajorVersion() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getJDBCMinorVersion() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public int getSQLStateType() throws SQLException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public boolean locatorsUpdateCopy() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean supportsStatementPooling() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public RowIdLifetime getRowIdLifetime() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getSchemas(String catalog, String schemaPattern)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean autoCommitFailureClosesAllResultSets() throws SQLException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public ResultSet getClientInfoProperties() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getFunctions(String catalog, String schemaPattern,
+ String functionNamePattern) throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResultSet getFunctionColumns(String catalog, String schemaPattern,
+ String functionNamePattern, String columnNamePattern)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockDataSource.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockDataSource.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockDataSource.java 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,55 @@
+package org.jboss.soa.esb.services.jbpm5;
+
+import java.io.PrintWriter;
+import java.sql.Connection;
+import java.sql.SQLException;
+
+import javax.sql.DataSource;
+
+/**
+ * MockDataSource needed for the BPM5ProcessorUnitTest.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ */
+public class MockDataSource implements DataSource {
+
+ @Override
+ public PrintWriter getLogWriter() throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void setLogWriter(PrintWriter out) throws SQLException {
+ }
+
+ @Override
+ public void setLoginTimeout(int seconds) throws SQLException {
+ }
+
+ @Override
+ public int getLoginTimeout() throws SQLException {
+ return 0;
+ }
+
+ @Override
+ public <T> T unwrap(Class<T> iface) throws SQLException {
+ return null;
+ }
+
+ @Override
+ public boolean isWrapperFor(Class<?> iface) throws SQLException {
+ return false;
+ }
+
+ @Override
+ public Connection getConnection() throws SQLException {
+ return new MockConnection();
+ }
+
+ @Override
+ public Connection getConnection(String username, String password)
+ throws SQLException {
+ return new MockConnection();
+ }
+}
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockInitialContextFactory.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockInitialContextFactory.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockInitialContextFactory.java 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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.services.jbpm5;
+
+import java.util.Hashtable;
+
+import javax.naming.Context;
+import javax.naming.NamingException;
+import javax.naming.spi.InitialContextFactory;
+
+/**
+ * MockInitialContextFactory needed for the BPM5ProcessorUnitTest.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ */
+public class MockInitialContextFactory implements InitialContextFactory
+{
+ /**
+ * Get the initial context specified by the environment.
+ */
+ public Context getInitialContext(final Hashtable<?, ?> environment)
+ throws NamingException
+ {
+ return new MockContext(environment);
+ }
+}
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockTransactionManager.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockTransactionManager.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockTransactionManager.java 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,62 @@
+package org.jboss.soa.esb.services.jbpm5;
+
+import javax.transaction.HeuristicMixedException;
+import javax.transaction.HeuristicRollbackException;
+import javax.transaction.InvalidTransactionException;
+import javax.transaction.NotSupportedException;
+import javax.transaction.RollbackException;
+import javax.transaction.SystemException;
+import javax.transaction.Transaction;
+import javax.transaction.TransactionManager;
+
+/**
+ * MockTransactionManager needed for the BPM5ProcessorUnitTest.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ */
+public class MockTransactionManager implements TransactionManager {
+
+ @Override
+ public void begin() throws NotSupportedException, SystemException {
+ }
+
+ @Override
+ public void commit() throws RollbackException, HeuristicMixedException,
+ HeuristicRollbackException, SecurityException,
+ IllegalStateException, SystemException {
+ }
+
+ @Override
+ public int getStatus() throws SystemException {
+ return 0;
+ }
+
+ @Override
+ public Transaction getTransaction() throws SystemException {
+ return null;
+ }
+
+ @Override
+ public void resume(Transaction arg0) throws InvalidTransactionException,
+ IllegalStateException, SystemException {
+ }
+
+ @Override
+ public void rollback() throws IllegalStateException, SecurityException,
+ SystemException {
+ }
+
+ @Override
+ public void setRollbackOnly() throws IllegalStateException, SystemException {
+ }
+
+ @Override
+ public void setTransactionTimeout(int arg0) throws SystemException {
+ }
+
+ @Override
+ public Transaction suspend() throws SystemException {
+ return null;
+ }
+
+}
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockUserTransaction.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockUserTransaction.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/MockUserTransaction.java 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,44 @@
+package org.jboss.soa.esb.services.jbpm5;
+
+import javax.transaction.HeuristicMixedException;
+import javax.transaction.HeuristicRollbackException;
+import javax.transaction.NotSupportedException;
+import javax.transaction.RollbackException;
+import javax.transaction.SystemException;
+import javax.transaction.UserTransaction;
+
+public class MockUserTransaction implements UserTransaction {
+
+ public MockUserTransaction() {
+ }
+
+ @Override
+ public void begin() throws NotSupportedException, SystemException {
+ }
+
+ @Override
+ public void commit() throws RollbackException, HeuristicMixedException,
+ HeuristicRollbackException, SecurityException,
+ IllegalStateException, SystemException {
+ }
+
+ @Override
+ public int getStatus() throws SystemException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public void rollback() throws IllegalStateException, SecurityException,
+ SystemException {
+ }
+
+ @Override
+ public void setRollbackOnly() throws IllegalStateException, SystemException {
+ }
+
+ @Override
+ public void setTransactionTimeout(int arg0) throws SystemException {
+ }
+
+}
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/actions/Bpm5ProcessorUnitTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/actions/Bpm5ProcessorUnitTest.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/test/java/org/jboss/soa/esb/services/jbpm5/actions/Bpm5ProcessorUnitTest.java 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,135 @@
+package org.jboss.soa.esb.services.jbpm5.actions;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
+
+import javax.crypto.Cipher;
+import javax.crypto.IllegalBlockSizeException;
+import javax.crypto.KeyGenerator;
+import javax.crypto.NoSuchPaddingException;
+import javax.crypto.SealedObject;
+import javax.crypto.SecretKey;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+import org.jboss.soa.esb.services.jbpm5.MockDataSource;
+import org.jboss.soa.esb.services.jbpm5.MockTransactionManager;
+import org.jboss.soa.esb.services.jbpm5.MockUserTransaction;
+import org.jboss.soa.esb.services.jbpm5.actions.Bpm5Processor;
+
+import junit.framework.JUnit4TestAdapter;
+
+import org.jboss.soa.esb.ConfigurationException;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+import org.jboss.soa.esb.services.security.SecurityContext;
+import org.jboss.soa.esb.services.security.SecurityService;
+import org.jboss.soa.esb.services.security.auth.AuthenticationRequestImpl;
+import org.junit.Before;
+import org.junit.Test;
+import org.xml.sax.SAXException;
+
+/**
+ * Test the BPM5Process action's security context / auth request.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ */
+public class Bpm5ProcessorUnitTest {
+ private Bpm5Processor bpmProcessor;
+ private Message message;
+ private ConfigTree configTree;
+
+ @Test
+ public void verifyThatSecurityContextWasAddedToMesssageContext() throws ConfigurationException, InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException, IOException
+ {
+ final SealedObject securityContext = createSealedObject("dummy string");
+ SecurityContext.setSecurityContext(securityContext);
+ bpmProcessor.addSecurityContext(message);
+
+ assertNotNull(message.getContext().getContext(SecurityService.CONTEXT));
+ assertEquals(securityContext, message.getContext().getContext(SecurityService.CONTEXT));
+ }
+
+ @Test
+ public void verifyThatNullSecurityContextCanBeAddedToMesssageContext() throws ConfigurationException, InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException, IOException
+ {
+ SecurityContext.setSecurityContext(null);
+ bpmProcessor.addSecurityContext(message);
+
+ assertNull(message.getContext().getContext(SecurityService.CONTEXT));
+ }
+
+ @Test
+ public void verifyThatAuthenticationRequestWasAddedToMessageContext() throws ConfigurationException
+ {
+ // Doesn't need to be encrypted as this is only passed along and never descrypted.
+ byte[] encryptedAuthRequest = new byte[100];
+ AuthenticationRequestImpl.setEncryptedAuthRequest(encryptedAuthRequest);
+ bpmProcessor.addAuthenticationRequest(message);
+
+ assertNotNull(message.getContext().getContext(SecurityService.AUTH_REQUEST));
+ assertEquals(encryptedAuthRequest, message.getContext().getContext(SecurityService.AUTH_REQUEST));
+ }
+
+ @Test
+ public void verifyThatNullAuthenticationRequestCanBeAddedToMessageContext() throws ConfigurationException
+ {
+ AuthenticationRequestImpl.setEncryptedAuthRequest(null);
+ bpmProcessor.addAuthenticationRequest(message);
+ assertNull(message.getContext().getContext(SecurityService.AUTH_REQUEST));
+ }
+
+ @Before
+ public void setup() throws ConfigurationException
+ {
+ Context ctx = null;
+ try {
+ ctx = new InitialContext();
+ MockDataSource mds = new MockDataSource();
+ MockUserTransaction mut = new MockUserTransaction();
+ MockTransactionManager mtm = new MockTransactionManager();
+ ctx.rebind("UserTransaction", mut);
+ ctx.rebind("java:jboss/datasources/jbpm5DS", mds);
+ ctx.rebind("java:/TransactionManager", mtm);
+ } catch (Exception e) {
+ //fail(e.getMessage());
+ }
+
+ try {
+ configTree = ConfigTree.fromXml(
+ "<action action=\"jbpm5\" class=\"org.jboss.soa.esb.services.jbpm5.actions.Bpm5Processor\" process-action=\"startProcess\" "
+ + "process-definition-name=\"Evaluation.bpmn\" process-id=\"com.sample.evaluation\">"
+ + "<mapping bpm=\"employee\" esb=\"employee\" value=\"krisv\"/>"
+ + "<mapping bpm=\"reason\" esb=\"reason\" value=\"Yearly performance review\"/>"
+ + "</action>");
+ } catch (SAXException se){
+ throw new ConfigurationException(se);
+ }
+ bpmProcessor = new Bpm5Processor(configTree);
+ message = MessageFactory.getInstance().getMessage();
+ }
+
+ public static junit.framework.Test suite()
+ {
+ return new JUnit4TestAdapter(Bpm5ProcessorUnitTest.class);
+ }
+
+ private SealedObject createSealedObject(final Serializable ser) throws NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException, IOException, InvalidKeyException
+ {
+ final KeyGenerator kpg = KeyGenerator.getInstance("TripleDES");
+ kpg.init(112);
+ final SecretKey secretKey = kpg.generateKey();
+ final Cipher cipher = Cipher.getInstance("TripleDES");
+ cipher.init(Cipher.ENCRYPT_MODE, secretKey);
+
+ return new SealedObject(ser, cipher);
+ }
+
+}
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/resources/Evaluation.bpmn
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/resources/Evaluation.bpmn (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/resources/Evaluation.bpmn 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,272 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions id="Definition"
+ targetNamespace="http://www.jboss.org/drools"
+ typeLanguage="http://www.java.com/javaTypes"
+ expressionLanguage="http://www.mvel.org/2.0"
+ xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
+ xmlns:g="http://www.jboss.org/drools/flow/gpd"
+ xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
+ xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
+ xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
+ xmlns:tns="http://www.jboss.org/drools">
+
+ <itemDefinition id="_employeeItem" />
+ <itemDefinition id="_reasonItem" />
+ <itemDefinition id="_performanceItem" />
+ <itemDefinition id="_contentItem" />
+
+ <process processType="Private" isExecutable="true" id="com.sample.evaluation" name="Evaluation" tns:packageName="defaultPackage" >
+
+ <!-- process variables -->
+ <property id="employee" itemSubjectRef="_employeeItem"/>
+ <property id="reason" itemSubjectRef="_reasonItem"/>
+ <property id="performance" itemSubjectRef="_performanceItem"/>
+ <property id="content" itemSubjectRef="_contentItem"/>
+
+ <!-- nodes -->
+ <startEvent id="_1" name="Start" />
+ <userTask id="_2" name="Self Evaluation" >
+ <extensionElements>
+ <tns:onEntry-script scriptFormat="http://www.java.com/java">
+ <script>java.util.Map contentParam = new java.util.HashMap();
+contentParam.put("reason", reason);
+kcontext.setVariable("content", contentParam);</script>
+ </tns:onEntry-script>
+ </extensionElements>
+ <ioSpecification>
+ <dataInput id="_2_ContentInput" name="Content" />
+ <dataInput id="_2_CommentInput" name="Comment" />
+ <dataInput id="_2_SkippableInput" name="Skippable" />
+ <dataInput id="_2_TaskNameInput" name="TaskName" />
+ <dataOutput id="_2_performanceOutput" name="performance" />
+ <inputSet>
+ <dataInputRefs>_2_ContentInput</dataInputRefs>
+ <dataInputRefs>_2_CommentInput</dataInputRefs>
+ <dataInputRefs>_2_SkippableInput</dataInputRefs>
+ <dataInputRefs>_2_TaskNameInput</dataInputRefs>
+ </inputSet>
+ <outputSet>
+ <dataOutputRefs>_2_performanceOutput</dataOutputRefs>
+ </outputSet>
+ </ioSpecification>
+ <dataInputAssociation>
+ <sourceRef>content</sourceRef>
+ <targetRef>_2_ContentInput</targetRef>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_2_CommentInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">Please perform a self-evalutation.</from>
+ <to xsi:type="tFormalExpression">_2_CommentInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_2_SkippableInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">false</from>
+ <to xsi:type="tFormalExpression">_2_SkippableInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_2_TaskNameInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">Performance Evaluation</from>
+ <to xsi:type="tFormalExpression">_2_TaskNameInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <dataOutputAssociation>
+ <sourceRef>_2_performanceOutput</sourceRef>
+ <targetRef>performance</targetRef>
+ </dataOutputAssociation>
+ <potentialOwner>
+ <resourceAssignmentExpression>
+ <formalExpression>#{employee}</formalExpression>
+ </resourceAssignmentExpression>
+ </potentialOwner>
+ </userTask>
+ <userTask id="_3" name="PM Evaluation" >
+ <extensionElements>
+ <tns:onEntry-script>
+ <script>java.util.Map contentParam = new java.util.HashMap();
+contentParam.put("reason", reason);
+contentParam.put("performance", performance);
+kcontext.setVariable("content", contentParam);</script>
+ </tns:onEntry-script>
+ </extensionElements>
+ <ioSpecification>
+ <dataInput id="_3_ContentInput" name="Content" />
+ <dataInput id="_3_CommentInput" name="Comment" />
+ <dataInput id="_3_SkippableInput" name="Skippable" />
+ <dataInput id="_3_TaskNameInput" name="TaskName" />
+ <inputSet>
+ <dataInputRefs>_3_ContentInput</dataInputRefs>
+ <dataInputRefs>_3_CommentInput</dataInputRefs>
+ <dataInputRefs>_3_SkippableInput</dataInputRefs>
+ <dataInputRefs>_3_TaskNameInput</dataInputRefs>
+ </inputSet>
+ <outputSet>
+ </outputSet>
+ </ioSpecification>
+ <dataInputAssociation>
+ <sourceRef>content</sourceRef>
+ <targetRef>_3_ContentInput</targetRef>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_3_CommentInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">You need to evaluate #{employee}.</from>
+ <to xsi:type="tFormalExpression">_3_CommentInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_3_SkippableInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">false</from>
+ <to xsi:type="tFormalExpression">_3_SkippableInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_3_TaskNameInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">Performance Evaluation</from>
+ <to xsi:type="tFormalExpression">_3_TaskNameInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <potentialOwner>
+ <resourceAssignmentExpression>
+ <formalExpression>john</formalExpression>
+ </resourceAssignmentExpression>
+ </potentialOwner>
+ </userTask>
+ <userTask id="_4" name="HR Evaluation" >
+ <extensionElements>
+ <tns:onEntry-script scriptFormat="http://www.java.com/java">
+ <script>java.util.Map contentParam = new java.util.HashMap();
+contentParam.put("reason", reason);
+contentParam.put("performance", performance);
+kcontext.setVariable("content", contentParam);</script>
+ </tns:onEntry-script>
+ </extensionElements>
+ <ioSpecification>
+ <dataInput id="_4_ContentInput" name="Content" />
+ <dataInput id="_4_CommentInput" name="Comment" />
+ <dataInput id="_4_SkippableInput" name="Skippable" />
+ <dataInput id="_4_TaskNameInput" name="TaskName" />
+ <inputSet>
+ <dataInputRefs>_4_ContentInput</dataInputRefs>
+ <dataInputRefs>_4_CommentInput</dataInputRefs>
+ <dataInputRefs>_4_SkippableInput</dataInputRefs>
+ <dataInputRefs>_4_TaskNameInput</dataInputRefs>
+ </inputSet>
+ <outputSet>
+ </outputSet>
+ </ioSpecification>
+ <dataInputAssociation>
+ <sourceRef>content</sourceRef>
+ <targetRef>_4_ContentInput</targetRef>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_4_CommentInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">You need to evaluate #{employee}.</from>
+ <to xsi:type="tFormalExpression">_4_CommentInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_4_SkippableInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">false</from>
+ <to xsi:type="tFormalExpression">_4_SkippableInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_4_TaskNameInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">Performance Evaluation</from>
+ <to xsi:type="tFormalExpression">_4_TaskNameInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <potentialOwner>
+ <resourceAssignmentExpression>
+ <formalExpression>mary</formalExpression>
+ </resourceAssignmentExpression>
+ </potentialOwner>
+ </userTask>
+ <parallelGateway id="_5" name="Gateway" gatewayDirection="Diverging" />
+ <parallelGateway id="_6" name="Gateway" gatewayDirection="Converging" />
+ <endEvent id="_7" name="End" >
+ <terminateEventDefinition/>
+ </endEvent>
+
+ <!-- connections -->
+ <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
+ <sequenceFlow id="_5-_3" sourceRef="_5" targetRef="_3" />
+ <sequenceFlow id="_5-_4" sourceRef="_5" targetRef="_4" />
+ <sequenceFlow id="_2-_5" sourceRef="_2" targetRef="_5" />
+ <sequenceFlow id="_4-_6" sourceRef="_4" targetRef="_6" />
+ <sequenceFlow id="_3-_6" sourceRef="_3" targetRef="_6" />
+ <sequenceFlow id="_6-_7" sourceRef="_6" targetRef="_7" />
+
+ </process>
+
+ <bpmndi:BPMNDiagram>
+ <bpmndi:BPMNPlane bpmnElement="com.sample.evaluation" >
+ <bpmndi:BPMNShape bpmnElement="_1" >
+ <dc:Bounds x="16" y="56" width="48" height="48" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape bpmnElement="_2" >
+ <dc:Bounds x="96" y="56" width="135" height="48" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape bpmnElement="_3" >
+ <dc:Bounds x="344" y="96" width="136" height="48" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape bpmnElement="_4" >
+ <dc:Bounds x="344" y="16" width="136" height="48" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape bpmnElement="_5" >
+ <dc:Bounds x="263" y="56" width="48" height="48" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape bpmnElement="_6" >
+ <dc:Bounds x="512" y="56" width="48" height="48" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape bpmnElement="_7" >
+ <dc:Bounds x="593" y="56" width="48" height="48" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge bpmnElement="_1-_2" >
+ <di:waypoint x="40" y="80" />
+ <di:waypoint x="163" y="80" />
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge bpmnElement="_5-_3" >
+ <di:waypoint x="287" y="80" />
+ <di:waypoint x="287" y="120" />
+ <di:waypoint x="412" y="120" />
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge bpmnElement="_5-_4" >
+ <di:waypoint x="287" y="80" />
+ <di:waypoint x="287" y="40" />
+ <di:waypoint x="412" y="40" />
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge bpmnElement="_2-_5" >
+ <di:waypoint x="163" y="80" />
+ <di:waypoint x="287" y="80" />
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge bpmnElement="_4-_6" >
+ <di:waypoint x="412" y="40" />
+ <di:waypoint x="536" y="40" />
+ <di:waypoint x="536" y="80" />
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge bpmnElement="_3-_6" >
+ <di:waypoint x="412" y="120" />
+ <di:waypoint x="537" y="120" />
+ <di:waypoint x="536" y="80" />
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge bpmnElement="_6-_7" >
+ <di:waypoint x="536" y="80" />
+ <di:waypoint x="617" y="80" />
+ </bpmndi:BPMNEdge>
+ </bpmndi:BPMNPlane>
+ </bpmndi:BPMNDiagram>
+
+</definitions>
\ No newline at end of file
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/resources/jndi.properties
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/resources/jndi.properties (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/test/resources/jndi.properties 2012-04-16 02:23:52 UTC (rev 38023)
@@ -0,0 +1,5 @@
+java.naming.factory.initial=org.jboss.soa.esb.services.jbpm5.MockInitialContextFactory
+#java.naming.provider.url=jnp://localhost:1099
+#java.naming.factory.url.pkgs=org.jboss.naming
+#java.naming.factory.url.pkgs=org.jnp.interfaces
+
More information about the jboss-svn-commits
mailing list