You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by db...@apache.org on 2004/09/29 23:35:25 UTC
svn commit: rev 47504 - in geronimo/trunk/itests: . client client/src client/src/itest client/src/itest/org client/src/itest/org/apache client/src/itest/org/apache/geronimo client/src/itest/org/apache/geronimo/itest client/src/itest/org/apache/geronimo/itest/client client/src/java client/src/resources client/src/resources/client client/src/resources/client/META-INF client/src/resources/ear client/src/resources/ear/META-INF client/target client/target/classes
Author: dblevins
Date: Wed Sep 29 14:35:24 2004
New Revision: 47504
Added:
geronimo/trunk/itests/
geronimo/trunk/itests/client/
geronimo/trunk/itests/client/geronimo-itests-client.iml
geronimo/trunk/itests/client/geronimo-itests-client.ipr
geronimo/trunk/itests/client/geronimo-itests-client.iws
geronimo/trunk/itests/client/locator.ent
geronimo/trunk/itests/client/maven.xml
geronimo/trunk/itests/client/project.properties
geronimo/trunk/itests/client/project.xml
geronimo/trunk/itests/client/src/
geronimo/trunk/itests/client/src/itest/
geronimo/trunk/itests/client/src/itest/org/
geronimo/trunk/itests/client/src/itest/org/apache/
geronimo/trunk/itests/client/src/itest/org/apache/geronimo/
geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/
geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/
geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/EjbCommunicationTest.java
geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiEjbRefTest.java
geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiEnvEntryTest.java
geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiMessageDestinationRefTest.java
geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiResourceEnvRefTest.java
geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiResourceRefTest.java
geronimo/trunk/itests/client/src/java/
geronimo/trunk/itests/client/src/resources/
geronimo/trunk/itests/client/src/resources/client/
geronimo/trunk/itests/client/src/resources/client/META-INF/
geronimo/trunk/itests/client/src/resources/client/META-INF/application-client.xml
geronimo/trunk/itests/client/src/resources/ear/
geronimo/trunk/itests/client/src/resources/ear/META-INF/
geronimo/trunk/itests/client/src/resources/ear/META-INF/application.xml
geronimo/trunk/itests/client/target/
geronimo/trunk/itests/client/target/classes/
Log:
The start if integration tests for application clients
Added: geronimo/trunk/itests/client/geronimo-itests-client.iml
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/geronimo-itests-client.iml Wed Sep 29 14:35:24 2004
@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module version="4" relativePaths="false" type="J2EE_EJB_MODULE">
+ <component name="EjbModuleBuildComponent">
+ <setting name="EXPLODED_URL" value="file://" />
+ <setting name="EXPLODED_ENABLED" value="false" />
+ <setting name="JAR_URL" value="file://$MODULE_DIR$/target/geronimo-itests-client-1.0-SNAPSHOT.jar" />
+ <setting name="JAR_ENABLED" value="true" />
+ <setting name="SYNC_EXPLODED_DIR" value="false" />
+ <setting name="BUILD_ON_FRAME_DEACTIVATION" value="false" />
+ </component>
+ <component name="EjbModuleProperties">
+ <containerElement type="library" level="module">
+ <url>jar:///Users/dblevins/.maven/repository/openejb/ejbs/openejb-itests-2.0-SNAPSHOT.jar!/</url>
+ <attribute name="method" value="2" />
+ <attribute name="URI" value="/openejb-itests-2.0-SNAPSHOT.jar" />
+ </containerElement>
+ <deploymentDescriptor name="ejb-jar.xml" url="file://$MODULE_DIR$/src/ejb/META-INF/ejb-jar.xml" version="2.x" />
+ </component>
+ <component name="ModuleRootManager" />
+ <component name="NewModuleRootManager">
+ <output url="file://$MODULE_DIR$/target/classes" />
+ <output-test url="file://$MODULE_DIR$/target/test-classes" />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/src/itest" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
+ </content>
+ <orderEntry type="jdk" jdkName="java version "1.4.2_05"" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module-library">
+ <library name="tranql">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/tranql/jars/tranql-1.0-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module" module-name="geronimo-kernel" />
+ <orderEntry type="module" module-name="geronimo-core" />
+ <orderEntry type="module" module-name="geronimo-remoting" />
+ <orderEntry type="module" module-name="geronimo-security" />
+ <orderEntry type="module-library">
+ <library name="geronimo-spec-j2ee-jacc">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/geronimo-spec/jars/geronimo-spec-j2ee-jacc-1.0-rc2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="cglib-full">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/cglib/jars/cglib-full-2.0.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="openejb-core">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/openejb/jars/openejb-core-2.0-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="openejb-assembly">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/openejb/jars/openejb-assembly-2.0-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="geronimo-spec-jta">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/geronimo-spec/jars/geronimo-spec-jta-1.0.1B-rc2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="geronimo-spec-ejb">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/geronimo-spec/jars/geronimo-spec-ejb-2.1-rc2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="geronimo-spec-servlet">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/geronimo-spec/jars/geronimo-spec-servlet-2.4-rc2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="geronimo-spec-j2ee-connector">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/geronimo-spec/jars/geronimo-spec-j2ee-connector-1.5-rc2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="junit">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/junit/jars/junit-3.8.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="commons-logging">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/commons-logging/jars/commons-logging-1.0.3.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="concurrent">
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/concurrent/jars/concurrent-1.3.4.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar:///Users/dblevins/.maven/repository/openejb/ejbs/openejb-itests-2.0-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntryProperties />
+ </component>
+ <component name="WLEjbModuleProperties">
+ <option name="IS_RUN_APPC" value="true" />
+ </component>
+</module>
+
Added: geronimo/trunk/itests/client/geronimo-itests-client.ipr
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/geronimo-itests-client.ipr Wed Sep 29 14:35:24 2004
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project version="4" relativePaths="false">
+ <component version="2" name="ProjectRootManager" assert-keyword="false">
+ </component>
+ <component name="CodeStyleManager">
+ <option name="USE_DEFAULT_CODE_STYLE_SCHEME" value="true">
+ </option>
+ <option name="CODE_STYLE_SCHEME" value="">
+ </option>
+ </component>
+ <component name="ProjectModuleManager">
+ <modules>
+ <module filepath="$PROJECT_DIR$/geronimo-itests-client.iml">
+ </module>
+ </modules>
+ </component>
+ <component name="libraryTable">
+ </component>
+ <component name="CompilerConfiguration">
+ <option name="DEFAULT_COMPILER" value="Javac">
+ </option>
+ <option name="CLEAR_OUTPUT_DIRECTORY" value="false">
+ </option>
+ <resourceExtensions>
+ <entry name=".+\.(properties|xml|html)">
+ </entry>
+ <entry name=".+\.(gif|png|jpeg)">
+ </entry>
+ </resourceExtensions>
+ </component>
+ <component name="JavacSettings">
+ <option name="DEBUGGING_INFO" value="true">
+ </option>
+ <option name="GENERATE_NO_WARNINGS" value="false">
+ </option>
+ <option name="DEPRECATION" value="true">
+ </option>
+ <option name="ADDITIONAL_OPTIONS_STRING" value="">
+ </option>
+ <option name="MAXIMUM_HEAP_SIZE" value="128">
+ </option>
+ <option name="USE_GENERICS_COMPILER" value="false">
+ </option>
+ </component>
+ <component name="JikesSettings">
+ <option name="DEBUGGING_INFO" value="true">
+ </option>
+ <option name="DEPRECATION" value="true">
+ </option>
+ <option name="GENERATE_NO_WARNINGS" value="false">
+ </option>
+ <option name="GENERATE_MAKE_FILE_DEPENDENCIES" value="false">
+ </option>
+ <option name="DO_FULL_DEPENDENCE_CHECK" value="false">
+ </option>
+ <option name="IS_INCREMENTAL_MODE" value="false">
+ </option>
+ <option name="IS_EMACS_ERRORS_MODE" value="true">
+ </option>
+ <option name="ADDITIONAL_OPTIONS_STRING" value="">
+ </option>
+ <option name="MAXIMUM_HEAP_SIZE" value="128">
+ </option>
+ </component>
+ <component name="AntConfiguration">
+ <option name="IS_AUTOSCROLL_TO_SOURCE" value="false">
+ </option>
+ <option name="FILTER_TARGETS" value="false">
+ </option>
+ </component>
+ <component name="JavadocGenerationManager">
+ <option name="OUTPUT_DIRECTORY">
+ </option>
+ <option name="OPTION_SCOPE" value="protected">
+ </option>
+ <option name="OPTION_HIERARCHY" value="false">
+ </option>
+ <option name="OPTION_NAVIGATOR" value="false">
+ </option>
+ <option name="OPTION_INDEX" value="false">
+ </option>
+ <option name="OPTION_SEPARATE_INDEX" value="false">
+ </option>
+ <option name="OPTION_USE_1_1" value="false">
+ </option>
+ <option name="OPTION_DOCUMENT_TAG_USE" value="false">
+ </option>
+ <option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false">
+ </option>
+ <option name="OPTION_DOCUMENT_TAG_VERSION" value="false">
+ </option>
+ <option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="false">
+ </option>
+ <option name="OPTION_DEPRECATED_LIST" value="false">
+ </option>
+ <option name="OTHER_OPTIONS">
+ </option>
+ <option name="HEAP_SIZE">
+ </option>
+ <option name="OPEN_IN_BROWSER" value="false">
+ </option>
+ </component>
+ <component name="WebManager">
+ <OPTION enabled="false">
+ </OPTION>
+ </component>
+ <component name="WebRootContainer">
+ </component>
+ <component enabled="false" name="EjbManager">
+ </component>
+ <component name="JUnitProjectSettings">
+ <option name="TEST_RUNNER" value="UI">
+ </option>
+ </component>
+ <component name="EntryPointsManager">
+ <entry_points>
+ </entry_points>
+ </component>
+ <component name="DataSourceManager">
+ </component>
+ <component name="EjbActionsConfiguration">
+ <option name="NEW_MESSAGE_BEAN_LAST_PACKAGE" value="">
+ </option>
+ <option name="NEW_ENTITY_BEAN_LAST_PACKAGE" value="">
+ </option>
+ <option name="NEW_SESSION_BEAN_LAST_PACKAGE" value="">
+ </option>
+ </component>
+ <component name="ExportToHTMLSettings">
+ <option name="PRINT_LINE_NUMBERS" value="false">
+ </option>
+ <option name="OPEN_IN_BROWSER" value="false">
+ </option>
+ <option name="OUTPUT_DIRECTORY">
+ </option>
+ </component>
+ <component name="ImportConfiguration">
+ <option name="VENDOR">
+ </option>
+ <option name="RELEASE_TAG">
+ </option>
+ <option name="LOG_MESSAGE">
+ </option>
+ <option name="CHECKOUT_AFTER_IMPORT" value="true">
+ </option>
+ </component>
+</project>
\ No newline at end of file
Added: geronimo/trunk/itests/client/geronimo-itests-client.iws
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/geronimo-itests-client.iws Wed Sep 29 14:35:24 2004
@@ -0,0 +1,505 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project version="4" relativePaths="false">
+ <component name="LvcsProjectConfiguration">
+ <option name="ADD_LABEL_ON_PROJECT_OPEN" value="true">
+ </option>
+ <option name="ADD_LABEL_ON_PROJECT_COMPILATION" value="true">
+ </option>
+ <option name="ADD_LABEL_ON_FILE_PACKAGE_COMPILATION" value="true">
+ </option>
+ <option name="ADD_LABEL_ON_PROJECT_MAKE" value="true">
+ </option>
+ <option name="ADD_LABEL_ON_RUNNING" value="true">
+ </option>
+ <option name="ADD_LABEL_ON_DEBUGGING" value="true">
+ </option>
+ <option name="ADD_LABEL_ON_UNIT_TEST_PASSED" value="true">
+ </option>
+ <option name="ADD_LABEL_ON_UNIT_TEST_FAILED" value="true">
+ </option>
+ </component>
+ <component name="PropertiesComponent">
+ <property name="MemberChooser.copyJavadoc" value="false">
+ </property>
+ <property name="GoToClass.includeLibraries" value="false">
+ </property>
+ <property name="MemberChooser.showClasses" value="true">
+ </property>
+ <property name="MemberChooser.sorted" value="false">
+ </property>
+ <property name="GoToFile.includeJavaFiles" value="false">
+ </property>
+ <property name="GoToClass.toSaveIncludeLibraries" value="false">
+ </property>
+ </component>
+ <component name="ToolWindowManager">
+ <frame height="746" x="-4" width="1032" extended-state="6" y="-4">
+ </frame>
+ <editor active="false">
+ </editor>
+ <layout>
+ <window_info id="CVS" auto_hide="false" order="-1" visible="false" active="false" anchor="bottom" weight="0.33" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="TODO" auto_hide="false" order="7" visible="false" active="false" anchor="bottom" weight="0.33" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Project" auto_hide="false" order="0" visible="false" active="false" anchor="left" weight="0.25" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Find" auto_hide="false" order="1" visible="false" active="false" anchor="bottom" weight="0.33" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Structure" auto_hide="false" order="1" visible="false" active="false" anchor="left" weight="0.25" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Messages" auto_hide="false" order="-1" visible="false" active="false" anchor="bottom" weight="0.33" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Inspection" auto_hide="false" order="6" visible="false" active="false" anchor="bottom" weight="0.4" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Aspects" auto_hide="false" order="-1" visible="false" active="false" anchor="right" weight="0.33" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Ant Build" auto_hide="false" order="1" visible="false" active="false" anchor="right" weight="0.25" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Run" auto_hide="false" order="2" visible="false" active="false" anchor="bottom" weight="0.33" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Hierarchy" auto_hide="false" order="2" visible="false" active="false" anchor="right" weight="0.25" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Debug" auto_hide="false" order="4" visible="false" active="false" anchor="bottom" weight="0.4" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Commander" auto_hide="false" order="0" visible="false" active="false" anchor="right" weight="0.4" internal_type="sliding" type="sliding">
+ </window_info>
+ <window_info id="Web" auto_hide="false" order="2" visible="false" active="false" anchor="left" weight="0.25" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Message" auto_hide="false" order="0" visible="false" active="false" anchor="bottom" weight="0.33" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="EJB" auto_hide="false" order="3" visible="false" active="false" anchor="bottom" weight="0.25" internal_type="docked" type="docked">
+ </window_info>
+ <window_info id="Cvs" auto_hide="false" order="5" visible="false" active="false" anchor="bottom" weight="0.25" internal_type="docked" type="docked">
+ </window_info>
+ </layout>
+ </component>
+ <component name="ErrorTreeViewConfiguration">
+ <option name="IS_AUTOSCROLL_TO_SOURCE" value="false">
+ </option>
+ <option name="HIDE_WARNINGS" value="false">
+ </option>
+ </component>
+ <component name="StructureViewFactory">
+ <option name="SORT_MODE" value="0">
+ </option>
+ <option name="GROUP_INHERITED" value="true">
+ </option>
+ <option name="AUTOSCROLL_MODE" value="true">
+ </option>
+ <option name="SHOW_FIELDS" value="true">
+ </option>
+ <option name="AUTOSCROLL_FROM_SOURCE" value="false">
+ </option>
+ <option name="GROUP_GETTERS_AND_SETTERS" value="true">
+ </option>
+ <option name="SHOW_INHERITED" value="false">
+ </option>
+ <option name="HIDE_NOT_PUBLIC" value="false">
+ </option>
+ </component>
+ <component name="ProjectViewSettings">
+ <navigator flattenPackages="false" splitterProportion="0.5" autoscrollToSource="false" showMembers="false" showStructure="false" currentView="ProjectPane">
+ </navigator>
+ <view id="ProjectPane">
+ <expanded_node url="file://$PROJECT_DIR$" type="directory">
+ </expanded_node>
+ </view>
+ <view id="SourcepathPane">
+ </view>
+ <view id="ClasspathPane">
+ </view>
+ </component>
+ <component name="Commander">
+ <leftPanel view="Project">
+ </leftPanel>
+ <rightPanel view="Project">
+ </rightPanel>
+ <splitter proportion="0.5">
+ </splitter>
+ </component>
+ <component name="AspectsView">
+ </component>
+ <component name="SelectInManager">
+ </component>
+ <component name="HierarchyBrowserManager">
+ <option name="SHOW_PACKAGES" value="false">
+ </option>
+ <option name="IS_AUTOSCROLL_TO_SOURCE" value="false">
+ </option>
+ <option name="SORT_ALPHABETICALLY" value="false">
+ </option>
+ </component>
+ <component name="TodoView" selected-index="0">
+ <todo-panel id="selected-file">
+ <are-packages-shown value="false">
+ </are-packages-shown>
+ <flatten-packages value="false">
+ </flatten-packages>
+ <is-autoscroll-to-source value="true">
+ </is-autoscroll-to-source>
+ </todo-panel>
+ <todo-panel id="all">
+ <are-packages-shown value="true">
+ </are-packages-shown>
+ <flatten-packages value="false">
+ </flatten-packages>
+ <is-autoscroll-to-source value="true">
+ </is-autoscroll-to-source>
+ </todo-panel>
+ </component>
+ <component name="editorManager">
+ </component>
+ <component name="editorHistoryManager">
+ </component>
+ <component name="DaemonCodeAnalyzer">
+ <disable_hints>
+ </disable_hints>
+ </component>
+ <component name="InspectionManager">
+ <option name="AUTOSCROLL_TO_SOURCE" value="false">
+ </option>
+ <option name="SPLITTER_PROPORTION" value="0.5">
+ </option>
+ <profile name="Default">
+ </profile>
+ </component>
+ <component name="BookmarkManager">
+ </component>
+ <component name="DebuggerManager">
+ <line_breakpoints>
+ </line_breakpoints>
+ <exception_breakpoints>
+ <breakpoint_any>
+ <option name="NOTIFY_CAUGHT" value="true">
+ </option>
+ <option name="NOTIFY_UNCAUGHT" value="true">
+ </option>
+ <option name="ENABLED" value="false">
+ </option>
+ <option name="SUSPEND_VM" value="true">
+ </option>
+ <option name="COUNT_FILTER_ENABLED" value="false">
+ </option>
+ <option name="COUNT_FILTER" value="0">
+ </option>
+ <option name="CONDITION_ENABLED" value="false">
+ </option>
+ <option name="CONDITION">
+ </option>
+ <option name="LOG_ENABLED" value="false">
+ </option>
+ <option name="LOG_EXPRESSION_ENABLED" value="false">
+ </option>
+ <option name="LOG_MESSAGE">
+ </option>
+ <option name="CLASS_FILTERS_ENABLED" value="false">
+ </option>
+ <option name="INVERSE_CLASS_FILLTERS" value="false">
+ </option>
+ <option name="SUSPEND_POLICY" value="SuspendAll">
+ </option>
+ </breakpoint_any>
+ </exception_breakpoints>
+ <field_breakpoints>
+ </field_breakpoints>
+ <method_breakpoints>
+ </method_breakpoints>
+ </component>
+ <component name="DebuggerSettings">
+ <option name="TRACING_FILTERS_ENABLED" value="true">
+ </option>
+ <option name="TOSTRING_CLASSES_ENABLED" value="false">
+ </option>
+ <option name="VALUE_LOOKUP_DELAY" value="700">
+ </option>
+ <option name="DEBUGGER_TRANSPORT" value="0">
+ </option>
+ <option name="FORCE_CLASSIC_VM" value="true">
+ </option>
+ <option name="HIDE_DEBUGGER_ON_PROCESS_TERMINATION" value="false">
+ </option>
+ <option name="SKIP_SYNTHETIC_METHODS" value="true">
+ </option>
+ <option name="SKIP_CONSTRUCTORS" value="false">
+ </option>
+ <option name="STEP_THREAD_SUSPEND_POLICY" value="SuspendThread">
+ </option>
+ <default_breakpoint_settings>
+ <option name="NOTIFY_CAUGHT" value="true">
+ </option>
+ <option name="NOTIFY_UNCAUGHT" value="true">
+ </option>
+ <option name="WATCH_MODIFICATION" value="true">
+ </option>
+ <option name="WATCH_ACCESS" value="true">
+ </option>
+ <option name="WATCH_ENTRY" value="true">
+ </option>
+ <option name="WATCH_EXIT" value="true">
+ </option>
+ <option name="ENABLED" value="true">
+ </option>
+ <option name="SUSPEND_VM" value="true">
+ </option>
+ <option name="COUNT_FILTER_ENABLED" value="false">
+ </option>
+ <option name="COUNT_FILTER" value="0">
+ </option>
+ <option name="CONDITION_ENABLED" value="false">
+ </option>
+ <option name="CONDITION">
+ </option>
+ <option name="LOG_ENABLED" value="false">
+ </option>
+ <option name="LOG_EXPRESSION_ENABLED" value="false">
+ </option>
+ <option name="LOG_MESSAGE">
+ </option>
+ <option name="CLASS_FILTERS_ENABLED" value="false">
+ </option>
+ <option name="INVERSE_CLASS_FILLTERS" value="false">
+ </option>
+ <option name="SUSPEND_POLICY" value="SuspendAll">
+ </option>
+ </default_breakpoint_settings>
+ <filter>
+ <option name="PATTERN" value="com.sun.*">
+ </option>
+ <option name="ENABLED" value="true">
+ </option>
+ </filter>
+ <filter>
+ <option name="PATTERN" value="java.*">
+ </option>
+ <option name="ENABLED" value="true">
+ </option>
+ </filter>
+ <filter>
+ <option name="PATTERN" value="javax.*">
+ </option>
+ <option name="ENABLED" value="true">
+ </option>
+ </filter>
+ <filter>
+ <option name="PATTERN" value="org.omg.*">
+ </option>
+ <option name="ENABLED" value="true">
+ </option>
+ </filter>
+ <filter>
+ <option name="PATTERN" value="sun.*">
+ </option>
+ <option name="ENABLED" value="true">
+ </option>
+ </filter>
+ <filter>
+ <option name="PATTERN" value="junit.*">
+ </option>
+ <option name="ENABLED" value="true">
+ </option>
+ </filter>
+ </component>
+ <component name="CompilerWorkspaceConfiguration">
+ <option name="COMPILE_IN_BACKGROUND" value="false">
+ </option>
+ <option name="AUTO_SHOW_ERRORS_IN_EDITOR" value="true">
+ </option>
+ </component>
+ <component name="RunManager">
+ <option name="SHOW_SETTINGS_BEFORE_RUNNING" value="true">
+ </option>
+ <option name="COMPILE_BEFORE_RUNNING" value="true">
+ </option>
+ <activeType name="Application">
+ </activeType>
+ <configuration default="true" name="<template>" selected="false" type="Application">
+ <option name="MAIN_CLASS_NAME">
+ </option>
+ <option name="VM_PARAMETERS">
+ </option>
+ <option name="PROGRAM_PARAMETERS">
+ </option>
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$">
+ </option>
+ </configuration>
+ <configuration default="true" name="<template>" selected="false" type="Applet">
+ <option name="MAIN_CLASS_NAME">
+ </option>
+ <option name="HTML_FILE_NAME">
+ </option>
+ <option name="HTML_USED" value="false">
+ </option>
+ <option name="WIDTH" value="400">
+ </option>
+ <option name="HEIGHT" value="300">
+ </option>
+ <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy">
+ </option>
+ <option name="VM_PARAMETERS">
+ </option>
+ </configuration>
+ <configuration default="true" name="<template>" selected="false" type="JUnit">
+ <option name="PACKAGE_NAME">
+ </option>
+ <option name="MAIN_CLASS_NAME">
+ </option>
+ <option name="METHOD_NAME">
+ </option>
+ <option name="TEST_OBJECT">
+ </option>
+ <option name="VM_PARAMETERS">
+ </option>
+ <option name="PARAMETERS">
+ </option>
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$">
+ </option>
+ <option name="ADDITIONAL_CLASS_PATH">
+ </option>
+ </configuration>
+ <configuration default="true" name="<template>" selected="false" type="Remote">
+ <option name="USE_SOCKET_TRANSPORT" value="true">
+ </option>
+ <option name="SERVER_MODE" value="false">
+ </option>
+ <option name="SHMEM_ADDRESS" value="javadebug">
+ </option>
+ <option name="HOST" value="localhost">
+ </option>
+ <option name="PORT" value="5005">
+ </option>
+ </configuration>
+ <configuration default="true" name="<template>" selected="false" type="WebApp">
+ <WebServerIntegration name="">
+ </WebServerIntegration>
+ <Host>localhost</Host>
+ <Port>5050</Port>
+ <LaunchServer>false</LaunchServer>
+ </configuration>
+ </component>
+ <component name="VcsManagerConfiguration">
+ <option name="ACTIVE_VCS_NAME" value="">
+ </option>
+ </component>
+ <component name="VssConfiguration">
+ <CheckoutOptions>
+ <option name="COMMENT" value="">
+ </option>
+ <option name="DO_NOT_GET_LATEST_VERSION" value="false">
+ </option>
+ <option name="REPLACE_WRITABLE" value="false">
+ </option>
+ <option name="RECURSIVE" value="false">
+ </option>
+ </CheckoutOptions>
+ <CheckinOptions>
+ <option name="COMMENT" value="">
+ </option>
+ <option name="KEEP_CHECKED_OUT" value="false">
+ </option>
+ <option name="RECURSIVE" value="false">
+ </option>
+ </CheckinOptions>
+ <AddOptions>
+ <option name="COMMENT" value="">
+ </option>
+ <option name="STORE_ONLY_LATEST_VERSION" value="false">
+ </option>
+ <option name="CHECK_OUT_IMMEDIATELY" value="false">
+ </option>
+ <option name="FILE_TYPE" value="0">
+ </option>
+ </AddOptions>
+ <UndocheckoutOptions>
+ <option name="MAKE_WRITABLE" value="false">
+ </option>
+ <option name="REPLACE_LOCAL_COPY" value="0">
+ </option>
+ <option name="RECURSIVE" value="false">
+ </option>
+ </UndocheckoutOptions>
+ <DiffOptions>
+ <option name="IGNORE_WHITE_SPACE" value="false">
+ </option>
+ <option name="IGNORE_CASE" value="false">
+ </option>
+ </DiffOptions>
+ <GetOptions>
+ <option name="REPLACE_WRITABLE" value="0">
+ </option>
+ <option name="MAKE_WRITABLE" value="false">
+ </option>
+ <option name="RECURSIVE" value="false">
+ </option>
+ </GetOptions>
+ <option name="CLIENT_PATH" value="">
+ </option>
+ <option name="SRCSAFEINI_PATH" value="">
+ </option>
+ <option name="USER_NAME" value="">
+ </option>
+ <option name="PWD" value="">
+ </option>
+ <option name="SHOW_CHECKOUT_OPTIONS" value="true">
+ </option>
+ <option name="SHOW_ADD_OPTIONS" value="true">
+ </option>
+ <option name="SHOW_UNDOCHECKOUT_OPTIONS" value="true">
+ </option>
+ <option name="SHOW_DIFF_OPTIONS" value="true">
+ </option>
+ <option name="SHOW_GET_OPTIONS" value="true">
+ </option>
+ <option name="USE_EXTERNAL_DIFF" value="false">
+ </option>
+ <option name="EXTERNAL_DIFF_PATH" value="">
+ </option>
+ <option name="REUSE_LAST_COMMENT" value="false">
+ </option>
+ <option name="PUT_FOCUS_INTO_COMMENT" value="false">
+ </option>
+ <option name="SHOW_CHECKIN_OPTIONS" value="true">
+ </option>
+ <option name="LAST_COMMIT_MESSAGE" value="">
+ </option>
+ <option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8">
+ </option>
+ </component>
+ <component name="CheckinPanelState">
+ </component>
+ <component name="WebViewSettings">
+ <webview flattenPackages="false" autoscrollToSource="false" showMembers="false">
+ </webview>
+ </component>
+ <component name="EjbViewSettings">
+ <EjbView autoscrollToSource="false" showMembers="false">
+ </EjbView>
+ </component>
+ <component name="AppServerRunManager">
+ </component>
+ <component name="StarteamConfiguration">
+ <option name="SERVER" value="">
+ </option>
+ <option name="PORT" value="49201">
+ </option>
+ <option name="USER" value="">
+ </option>
+ <option name="PASSWORD" value="">
+ </option>
+ <option name="PROJECT" value="">
+ </option>
+ <option name="VIEW" value="">
+ </option>
+ <option name="ALTERNATIVE_WORKING_PATH" value="">
+ </option>
+ <option name="PUT_FOCUS_INTO_COMMENT" value="false">
+ </option>
+ <option name="SHOW_CHECKIN_OPTIONS" value="true">
+ </option>
+ <option name="LAST_COMMIT_MESSAGE" value="">
+ </option>
+ <option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8">
+ </option>
+ </component>
+</project>
\ No newline at end of file
Added: geronimo/trunk/itests/client/locator.ent
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/locator.ent Wed Sep 29 14:35:24 2004
@@ -0,0 +1,3 @@
+<!ENTITY % versions SYSTEM "file:../../etc/version-info.ent">
+
+
Added: geronimo/trunk/itests/client/maven.xml
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/maven.xml Wed Sep 29 14:35:24 2004
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!-- $Revision: 1.13 $ $Date: 2004/09/14 21:39:52 $ -->
+
+<project default="default"
+ xmlns:j="jelly:core"
+ xmlns:ant="jelly:ant"
+ xmlns:deploy="geronimo:deploy"
+ xmlns:maven="jelly:maven"
+ xmlns:u="jelly:util"
+ xmlns:define="jelly:define"
+ >
+
+ <preGoal name="xdoc:jelly-transform">
+ <attainGoal name="html2xdoc"/>
+ </preGoal>
+
+ <goal name="default" prereqs="ear"/>
+ <goal name="build" prereqs="default"/>
+
+ <goal name="ejb" prereqs="java:compile">
+ <!-- snag the openejb-itest-ejb -->
+ </goal>
+
+ <goal name="client" prereqs="java:compile">
+ <ant:jar destfile="target/${pom.artifactId}-client.jar">
+ <fileset dir="target/classes">
+ <include name="**/*Client.class"/>
+ <include name="**/MagicGBall.class"/>
+ <include name="**/MagicGBallHome.class"/>
+ </fileset>
+ <fileset dir="src/resources/client"/>
+ <manifest>
+ <attribute name="Main-Class" value="org.acme.MagicGBallClient"/>
+ </manifest>
+ </ant:jar>
+ </goal>
+
+ <goal name="ear" prereqs="ejb,client">
+ <ant:jar destfile="target/${pom.artifactId}.ear">
+ <fileset dir="target">
+ <include name="${pom.artifactId}-ejb.jar"/>
+ <include name="${pom.artifactId}-client.jar"/>
+ </fileset>
+ <fileset dir="src/resources/ear"/>
+ </ant:jar>
+ </goal>
+
+ <postGoal name="ear">
+ <attainGoal name="itest"/>
+ </postGoal>
+
+ <preGoal name="itest:setup">
+ <ant:delete dir="${maven.build.dir}/geronimo"/>
+
+ <deploy:unpackServer
+ geronimoVersion="${geronimo_version}"
+ geronimoName="geronimo"
+ targetDir="${maven.build.dir}/geronimo"/>
+ <deploy:startRemoteServer
+ geronimoTarget="${maven.build.dir}/geronimo"
+ vmArgs="-Djava.rmi.server.RMIClassLoaderSpi=org.apache.geronimo.rmi.RMIClassLoaderSpiImpl"
+ configs="org/apache/geronimo/DefaultDatabase"/>
+ <deploy:waitForStarted
+ uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"
+ id="org/apache/geronimo/DefaultDatabase"/>
+ <echo message="server has started"/>
+ <deploy:distribute
+ uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"
+ home="${basedir}"
+ module="${basedir}/target/geronimo-itests-client-${pom.currentVersion}.jar"
+ />
+ <echo message="distributed ejbs"/>
+ <deploy:start
+ uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"
+ id="org/apache/geronimo/client/Itests"/>
+ </preGoal>
+
+ <preGoal name="itest:teardown">
+ <deploy:stop
+ uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"
+ id="org/apache/geronimo/client/Itests"/>
+ <deploy:undeploy
+ uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"
+ id="org/apache/geronimo/client/Itests"/>
+ <echo message="undeployed ejbs"/>
+ <deploy:stopRemoteServer
+ uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"/>
+ <echo message="server has stopped"/>
+ </preGoal>
+
+</project>
Added: geronimo/trunk/itests/client/project.properties
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/project.properties Wed Sep 29 14:35:24 2004
@@ -0,0 +1,22 @@
+##
+## $Revision: 1.10 $ $Date: 2004/09/24 07:18:55 $
+##
+
+maven.repo.remote=http://www.openejb.org/maven, http://www.ibiblio.org/maven
+
+maven.multiproject.type=ejb
+
+maven.itest.jvmargs=-Djava.rmi.server.RMIClassLoaderSpi=org.apache.geronimo.rmi.RMIClassLoaderSpiImpl
+
+maven.itest.includes=**/*Test.java
+
+maven.itest.sysproperties=openejb.test.server openejb.test.database java.security.auth.login.config java.rmi.server.RMIClassLoaderSpi
+openejb.test.server=org.openejb.test.RemoteTestServer
+openejb.test.database=org.openejb.test.AxionTestDatabase
+java.security.auth.login.config=${maven.itest.dest}/login.config
+java.rmi.server.RMIClassLoaderSpi=org.apache.geronimo.rmi.RMIClassLoaderSpiImpl
+
+#maven.itest.resources=loginConfig
+#loginConfig.dir=${basedir}/src/test-resources
+#loginConfig.includes=
+#loginConfig.excludes=
Added: geronimo/trunk/itests/client/project.xml
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/project.xml Wed Sep 29 14:35:24 2004
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE project [
+<!ENTITY % locator SYSTEM "file:locator.ent">
+%locator;
+%versions;
+]>
+
+<!-- $Revision: 1.17 $ $Date: 2004/09/12 17:11:54 $ -->
+
+<project>
+ <pomVersion>3</pomVersion>
+ <extend>${basedir}/../../etc/project.xml</extend>
+
+ <!-- ===================== -->
+ <!-- Module Identification -->
+ <!-- ===================== -->
+
+ <name>Geronimo :: Client App Integration Tests</name>
+ <id>geronimo-itests-client</id>
+ <shortDescription>Compliance and Integration Tests</shortDescription>
+ <description>App Client Compliance and Server Integration Tests</description>
+
+ <!-- ============ -->
+ <!-- Dependencies -->
+ <!-- ============ -->
+
+ <dependencies>
+
+ <dependency>
+ <groupId>tranql</groupId>
+ <artifactId>tranql</artifactId>
+ <version>&tranql-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-kernel</artifactId>
+ <version>&geronimo-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-core</artifactId>
+ <version>&geronimo-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-remoting</artifactId>
+ <version>&geronimo-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-security</artifactId>
+ <version>&geronimo-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo-spec</groupId>
+ <artifactId>geronimo-spec-j2ee-jacc</artifactId>
+ <version>&geronimo-spec-j2ee-jacc-version;</version>
+ <properties>
+ <runtime>true</runtime>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>cglib</groupId>
+ <artifactId>cglib-full</artifactId>
+ <version>&cglib-version;</version>
+ <url>http://cglib.sf.net</url>
+ </dependency>
+
+ <dependency>
+ <groupId>openejb</groupId>
+ <artifactId>openejb-core</artifactId>
+ <version>&openejb-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>openejb</groupId>
+ <artifactId>openejb-assembly</artifactId>
+ <version>&openejb-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>openejb</groupId>
+ <artifactId>openejb-itests-ejb</artifactId>
+ <version>&openejb-version;</version>
+ <type>ejb</type>
+ </dependency>
+
+ <!-- Thirdparty -->
+
+ <dependency>
+ <groupId>geronimo-spec</groupId>
+ <artifactId>geronimo-spec-jta</artifactId>
+ <version>&geronimo-spec-jta-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo-spec</groupId>
+ <artifactId>geronimo-spec-ejb</artifactId>
+ <version>&geronimo-spec-ejb-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo-spec</groupId>
+ <artifactId>geronimo-spec-servlet</artifactId>
+ <version>&geronimo-spec-servlet-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo-spec</groupId>
+ <artifactId>geronimo-spec-j2ee-connector</artifactId>
+ <version>&geronimo-spec-j2ee-connector-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>&junit-version;</version>
+ <properties>
+ <classloader>root</classloader>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>&commons-logging-version;</version>
+ </dependency>
+
+ <dependency>
+ <groupId>concurrent</groupId>
+ <artifactId>concurrent</artifactId>
+ <version>&concurrent-version;</version>
+ </dependency>
+ </dependencies>
+</project>
Added: geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/EjbCommunicationTest.java
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/EjbCommunicationTest.java Wed Sep 29 14:35:24 2004
@@ -0,0 +1,892 @@
+/**
+ *
+ * Copyright 2003-2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.itest.client;
+
+import javax.ejb.EJBHome;
+import javax.ejb.EJBMetaData;
+import javax.ejb.EJBObject;
+import javax.ejb.Handle;
+import javax.naming.InitialContext;
+
+import junit.framework.TestCase;
+import org.openejb.test.object.ObjectGraph;
+import org.openejb.test.stateless.EncStatelessHome;
+import org.openejb.test.stateless.EncStatelessObject;
+import org.openejb.test.stateless.RmiIiopStatelessHome;
+import org.openejb.test.stateless.RmiIiopStatelessObject;
+
+public class EjbCommunicationTest extends TestCase {
+
+ private RmiIiopStatelessHome ejbHome;
+ private RmiIiopStatelessObject ejbObject;
+ private InitialContext initialContext;
+
+
+ protected void setUp() throws Exception {
+ initialContext = new InitialContext();
+ Object obj = initialContext.lookup("java:comp/env/ejb/rmiiiopbean");
+ ejbHome = (RmiIiopStatelessHome) obj;
+ ejbObject = ejbHome.create();
+ }
+
+/*-------------------------------------------------*/
+/* String */
+/*-------------------------------------------------*/
+
+ public void testReturnStringObject() {
+ try {
+ String expected = new String("1");
+ String actual = ejbObject.returnStringObject(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnStringObjectArray() {
+ try {
+ String[] expected = {"1", "2", "3"};
+ String[] actual = ejbObject.returnStringObjectArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* Character */
+/*-------------------------------------------------*/
+ public void testReturnCharacterObject() {
+ try {
+ Character expected = new Character('1');
+ Character actual = ejbObject.returnCharacterObject(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnCharacterPrimitive() {
+ try {
+ char expected = '1';
+ char actual = ejbObject.returnCharacterPrimitive(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnCharacterObjectArray() {
+ try {
+ Character[] expected = {new Character('1'), new Character('2'), new Character('3')};
+ Character[] actual = ejbObject.returnCharacterObjectArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnCharacterPrimitiveArray() {
+ try {
+ char[] expected = {'1', '2', '3'};
+ char[] actual = ejbObject.returnCharacterPrimitiveArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* Boolean */
+/*-------------------------------------------------*/
+
+ public void testReturnBooleanObject() {
+ try {
+ Boolean expected = new Boolean(true);
+ Boolean actual = ejbObject.returnBooleanObject(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnBooleanPrimitive() {
+ try {
+ boolean expected = true;
+ boolean actual = ejbObject.returnBooleanPrimitive(expected);
+ assertEquals("" + expected, "" + actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnBooleanObjectArray() {
+ try {
+ Boolean[] expected = {new Boolean(true), new Boolean(false), new Boolean(true)};
+ Boolean[] actual = ejbObject.returnBooleanObjectArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnBooleanPrimitiveArray() {
+ try {
+ boolean[] expected = {false, true, true};
+ boolean[] actual = ejbObject.returnBooleanPrimitiveArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* Byte */
+/*-------------------------------------------------*/
+
+ public void testReturnByteObject() {
+ try {
+ Byte expected = new Byte("1");
+ Byte actual = ejbObject.returnByteObject(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnBytePrimitive() {
+ try {
+ byte expected = (byte) 1;
+ byte actual = ejbObject.returnBytePrimitive(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnByteObjectArray() {
+ try {
+ Byte[] expected = {new Byte("1"), new Byte("2"), new Byte("3")};
+ Byte[] actual = ejbObject.returnByteObjectArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnBytePrimitiveArray() {
+ try {
+ byte[] expected = {(byte) 1, (byte) 2, (byte) 3};
+ byte[] actual = ejbObject.returnBytePrimitiveArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* Short */
+/*-------------------------------------------------*/
+
+ public void testReturnShortObject() {
+ try {
+ Short expected = new Short("1");
+ Short actual = ejbObject.returnShortObject(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnShortPrimitive() {
+ try {
+ short expected = (short) 1;
+ short actual = ejbObject.returnShortPrimitive(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnShortObjectArray() {
+ try {
+ Short[] expected = {new Short("1"), new Short("2"), new Short("3")};
+ Short[] actual = ejbObject.returnShortObjectArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnShortPrimitiveArray() {
+ try {
+ short[] expected = {(short) 1, (short) 2, (short) 3};
+ short[] actual = ejbObject.returnShortPrimitiveArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* Integer */
+/*-------------------------------------------------*/
+
+ public void testReturnIntegerObject() {
+ try {
+ Integer expected = new Integer(1);
+ Integer actual = ejbObject.returnIntegerObject(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnIntegerPrimitive() {
+ try {
+ int expected = 1;
+ int actual = ejbObject.returnIntegerPrimitive(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnIntegerObjectArray() {
+ try {
+ Integer[] expected = {new Integer(1), new Integer(2), new Integer(3)};
+ Integer[] actual = ejbObject.returnIntegerObjectArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnIntegerPrimitiveArray() {
+ try {
+ int[] expected = {1, 2, 3};
+ int[] actual = ejbObject.returnIntegerPrimitiveArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* Long */
+/*-------------------------------------------------*/
+
+ public void testReturnLongObject() {
+ try {
+ Long expected = new Long("1");
+ Long actual = ejbObject.returnLongObject(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnLongPrimitive() {
+ try {
+ long expected = 1;
+ long actual = ejbObject.returnLongPrimitive(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnLongObjectArray() {
+ try {
+ Long[] expected = {new Long("1"), new Long("2"), new Long("3")};
+ Long[] actual = ejbObject.returnLongObjectArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnLongPrimitiveArray() {
+ try {
+ long[] expected = {1, 2, 3};
+ long[] actual = ejbObject.returnLongPrimitiveArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* Float */
+/*-------------------------------------------------*/
+
+ public void testReturnFloatObject() {
+ try {
+ Float expected = new Float("1.3");
+ Float actual = ejbObject.returnFloatObject(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnFloatPrimitive() {
+ try {
+ float expected = 1.2F;
+ float actual = ejbObject.returnFloatPrimitive(expected);
+ assertEquals(expected, actual, 0.00D);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnFloatObjectArray() {
+ try {
+ Float[] expected = {new Float("1.1"), new Float("2.2"), new Float("3.3")};
+ Float[] actual = ejbObject.returnFloatObjectArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnFloatPrimitiveArray() {
+ try {
+ float[] expected = {1.2F, 2.3F, 3.4F};
+ float[] actual = ejbObject.returnFloatPrimitiveArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i], 0.0D);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* Double */
+/*-------------------------------------------------*/
+
+ public void testReturnDoubleObject() {
+ try {
+ Double expected = new Double("1.1");
+ Double actual = ejbObject.returnDoubleObject(expected);
+ assertEquals(expected, actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnDoublePrimitive() {
+ try {
+ double expected = 1.2;
+ double actual = ejbObject.returnDoublePrimitive(expected);
+ assertEquals(expected, actual, 0.0D);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnDoubleObjectArray() {
+ try {
+ Double[] expected = {new Double("1.3"), new Double("2.4"), new Double("3.5")};
+ Double[] actual = ejbObject.returnDoubleObjectArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i]);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnDoublePrimitiveArray() {
+ try {
+ double[] expected = {1.4, 2.5, 3.6};
+ double[] actual = ejbObject.returnDoublePrimitiveArray(expected);
+
+ assertNotNull("The array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+ for (int i = 0; i < actual.length; i++) {
+ assertEquals("Array values are not equal at index " + i, expected[i], actual[i], 0.0D);
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* EJBHome */
+/*-------------------------------------------------*/
+
+ public void testReturnEJBHome() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome expected = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", expected);
+
+ EncStatelessHome actual = (EncStatelessHome) ejbObject.returnEJBHome(expected);
+ assertNotNull("The EJBHome returned is null", actual);
+
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnEJBHome2() {
+ try {
+ EncStatelessHome actual = (EncStatelessHome) ejbObject.returnEJBHome();
+ assertNotNull("The EJBHome returned is null", actual);
+
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnNestedEJBHome() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome expected = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", expected);
+
+ ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
+ assertNotNull("The ObjectGraph is null", graph);
+
+ EncStatelessHome actual = (EncStatelessHome) graph.getObject();
+ assertNotNull("The EJBHome returned is null", actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnNestedEJBHome2() {
+ try {
+ ObjectGraph graph = ejbObject.returnNestedEJBHome();
+ assertNotNull("The ObjectGraph is null", graph);
+
+ EncStatelessHome actual = (EncStatelessHome) graph.getObject();
+ assertNotNull("The EJBHome returned is null", actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void XtestReturnEJBHomeArray() {
+ try {
+
+ EncStatelessHome expected[] = new EncStatelessHome[3];
+ for (int i = 0; i < expected.length; i++) {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ expected[i] = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", expected[i]);
+ }
+
+ EJBHome[] actual = ejbObject.returnEJBHomeArray(expected);
+ assertNotNull("The EJBHome array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* EJBObject */
+/*-------------------------------------------------*/
+
+ public void testReturnEJBObject() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome home = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", home);
+
+ EncStatelessObject expected = home.create();
+ assertNotNull("The EJBObject created is null", expected);
+
+ EncStatelessObject actual = (EncStatelessObject) ejbObject.returnEJBObject(expected);
+ assertNotNull("The EJBObject returned is null", actual);
+
+ assertTrue("The EJBObejcts are not identical", expected.isIdentical(actual));
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnEJBObject2() {
+ try {
+ EncStatelessObject actual = (EncStatelessObject) ejbObject.returnEJBObject();
+ assertNotNull("The EJBObject returned is null", actual);
+
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnNestedEJBObject() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome home = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", home);
+
+ EncStatelessObject expected = home.create();
+ assertNotNull("The EJBObject created is null", expected);
+
+ ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
+ assertNotNull("The ObjectGraph is null", graph);
+
+ EncStatelessObject actual = (EncStatelessObject) graph.getObject();
+ assertNotNull("The EJBObject returned is null", actual);
+
+ assertTrue("The EJBObejcts are not identical", expected.isIdentical(actual));
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnNestedEJBObject2() {
+ try {
+ ObjectGraph graph = ejbObject.returnNestedEJBObject();
+ assertNotNull("The ObjectGraph is null", graph);
+
+ EncStatelessObject actual = (EncStatelessObject) graph.getObject();
+ assertNotNull("The EJBHome returned is null", actual);
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void XtestReturnEJBObjectArray() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome home = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", home);
+
+ EncStatelessObject expected[] = new EncStatelessObject[3];
+ for (int i = 0; i < expected.length; i++) {
+ expected[i] = home.create();
+ assertNotNull("The EJBObject created is null", expected[i]);
+ }
+
+ EJBObject[] actual = ejbObject.returnEJBObjectArray(expected);
+ assertNotNull("The EJBObject array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+
+ for (int i = 0; i < actual.length; i++) {
+ assertTrue("The EJBObejcts are not identical", expected[i].isIdentical(actual[i]));
+ }
+
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+/*-------------------------------------------------*/
+/* EJBMetaData */
+/*-------------------------------------------------*/
+
+ public void testReturnEJBMetaData() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome home = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", home);
+
+ EJBMetaData expected = home.getEJBMetaData();
+ assertNotNull("The EJBMetaData returned is null", expected);
+
+ EJBMetaData actual = ejbObject.returnEJBMetaData(expected);
+ assertNotNull("The EJBMetaData returned is null", actual);
+ assertEquals(expected.getHomeInterfaceClass(), actual.getHomeInterfaceClass());
+ assertEquals(expected.getRemoteInterfaceClass(), actual.getRemoteInterfaceClass());
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnEJBMetaData2() {
+ try {
+ EJBMetaData actual = ejbObject.returnEJBMetaData();
+ assertNotNull("The EJBMetaData returned is null", actual);
+ assertEquals(actual.getHomeInterfaceClass(), actual.getHomeInterfaceClass());
+ assertEquals(actual.getRemoteInterfaceClass(), actual.getRemoteInterfaceClass());
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnNestedEJBMetaData() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome home = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", home);
+
+ EJBMetaData expected = home.getEJBMetaData();
+ assertNotNull("The EJBMetaData returned is null", expected);
+
+ ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
+ assertNotNull("The ObjectGraph is null", graph);
+
+ EJBMetaData actual = (EJBMetaData) graph.getObject();
+ assertNotNull("The EJBMetaData returned is null", actual);
+ assertEquals(expected.getHomeInterfaceClass(), actual.getHomeInterfaceClass());
+ assertEquals(expected.getRemoteInterfaceClass(), actual.getRemoteInterfaceClass());
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnNestedEJBMetaData2() {
+ try {
+ ObjectGraph graph = ejbObject.returnNestedEJBMetaData();
+ assertNotNull("The ObjectGraph is null", graph);
+
+ EJBMetaData actual = (EJBMetaData) graph.getObject();
+ assertNotNull("The EJBMetaData returned is null", actual);
+ assertNotNull("The home interface class of the EJBMetaData is null", actual.getHomeInterfaceClass());
+ assertNotNull("The remote interface class of the EJBMetaData is null", actual.getRemoteInterfaceClass());
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnEJBMetaDataArray() {
+ try {
+
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome home = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", home);
+
+ EJBMetaData expected[] = new EJBMetaData[3];
+ for (int i = 0; i < expected.length; i++) {
+ expected[i] = home.getEJBMetaData();
+ assertNotNull("The EJBMetaData returned is null", expected[i]);
+ }
+
+ EJBMetaData[] actual = (EJBMetaData[]) ejbObject.returnEJBMetaDataArray(expected);
+ assertNotNull("The EJBMetaData array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+
+ for (int i = 0; i < actual.length; i++) {
+ assertNotNull("The EJBMetaData returned is null", actual[i]);
+ assertEquals(expected[i].getHomeInterfaceClass(), actual[i].getHomeInterfaceClass());
+ assertEquals(expected[i].getRemoteInterfaceClass(), actual[i].getRemoteInterfaceClass());
+ }
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+
+/*-------------------------------------------------*/
+/* Handle */
+/*-------------------------------------------------*/
+
+ public void testReturnHandle() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome home = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", home);
+
+ EncStatelessObject object = home.create();
+ assertNotNull("The EJBObject created is null", object);
+
+ Handle expected = object.getHandle();
+ assertNotNull("The EJBObject Handle returned is null", expected);
+ assertNotNull("The EJBObject in the Handle is null", expected.getEJBObject());
+
+ Handle actual = ejbObject.returnHandle(expected);
+ assertNotNull("The EJBObject Handle returned is null", actual);
+ assertNotNull("The EJBObject in the Handle is null", actual.getEJBObject());
+
+ EJBObject exp = expected.getEJBObject();
+ EJBObject act = actual.getEJBObject();
+
+ assertTrue("The EJBObjects in the Handles are not identical", exp.isIdentical(act));
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnHandle2() {
+ try {
+ Handle actual = ejbObject.returnHandle();
+ assertNotNull("The EJBObject Handle returned is null", actual);
+ assertNotNull("The EJBObject in the Handle is null", actual.getEJBObject());
+
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnNestedHandle() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome home = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", home);
+
+ EncStatelessObject object = home.create();
+ assertNotNull("The EJBObject created is null", object);
+
+ Handle expected = object.getHandle();
+ assertNotNull("The EJBObject Handle returned is null", expected);
+ assertNotNull("The EJBObject in the Handle is null", expected.getEJBObject());
+
+ ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
+ assertNotNull("The ObjectGraph is null", graph);
+
+ Handle actual = (Handle) graph.getObject();
+ assertNotNull("The EJBObject Handle returned is null", actual);
+ assertNotNull("The EJBObject in the Handle is null", actual.getEJBObject());
+
+ EJBObject exp = expected.getEJBObject();
+ EJBObject act = actual.getEJBObject();
+
+ assertTrue("The EJBObjects in the Handles are not identical", exp.isIdentical(act));
+
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnNestedHandle2() {
+ try {
+ ObjectGraph graph = ejbObject.returnNestedHandle();
+ assertNotNull("The ObjectGraph is null", graph);
+
+ Handle actual = (Handle) graph.getObject();
+ assertNotNull("The EJBObject Handle returned is null", actual);
+ assertNotNull("The EJBObject in the Handle is null", actual.getEJBObject());
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+ public void testReturnHandleArray() {
+ try {
+ Object obj = initialContext.lookup("client/tests/stateless/EncBean");
+ EncStatelessHome home = (EncStatelessHome) obj;
+ assertNotNull("The EJBHome returned from JNDI is null", home);
+
+ EncStatelessObject object = home.create();
+ assertNotNull("The EJBObject created is null", object);
+
+ Handle expected[] = new Handle[3];
+ for (int i = 0; i < expected.length; i++) {
+ expected[i] = object.getHandle();
+ assertNotNull("The EJBObject Handle returned is null", expected[i]);
+ }
+
+ Handle[] actual = (Handle[]) ejbObject.returnHandleArray(expected);
+ assertNotNull("The Handle array returned is null", actual);
+ assertEquals(expected.length, actual.length);
+
+ for (int i = 0; i < expected.length; i++) {
+ assertNotNull("The EJBObject Handle returned is null", actual[i]);
+ assertNotNull("The EJBObject in the Handle is null", actual[i].getEJBObject());
+ assertTrue("The EJBObjects in the Handles are not equal", expected[i].getEJBObject().isIdentical(actual[i].getEJBObject()));
+ }
+
+ } catch (Exception e) {
+ fail("Received Exception " + e.getClass() + " : " + e.getMessage());
+ }
+ }
+
+}
Added: geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiEjbRefTest.java
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiEjbRefTest.java Wed Sep 29 14:35:24 2004
@@ -0,0 +1,70 @@
+/**
+ *
+ * Copyright 2003-2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.itest.client;
+
+import javax.naming.InitialContext;
+
+import junit.framework.TestCase;
+import org.openejb.test.entity.bmp.BasicBmpHome;
+import org.openejb.test.entity.bmp.BasicBmpObject;
+import org.openejb.test.stateful.BasicStatefulHome;
+import org.openejb.test.stateful.BasicStatefulObject;
+import org.openejb.test.stateless.BasicStatelessHome;
+import org.openejb.test.stateless.BasicStatelessObject;
+
+public class JndiEjbRefTest extends TestCase {
+
+
+ public void testLookupEntityBean() throws Exception {
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ BasicBmpHome home = (BasicBmpHome) ctx.lookup("java:comp/env/ejb/bmp_entity");
+ assertNotNull("The EJBHome looked up is null", home);
+
+ BasicBmpObject object = home.create("Enc Bean");
+ assertNotNull("The EJBObject is null", object);
+ }
+
+ public void testLookupStatefulBean() throws Exception {
+
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ BasicStatefulHome home = (BasicStatefulHome) ctx.lookup("java:comp/env/ejb/stateful");
+ assertNotNull("The EJBHome looked up is null", home);
+
+ BasicStatefulObject object = home.create("Enc Bean");
+ assertNotNull("The EJBObject is null", object);
+
+ }
+
+ public void testLookupStatelessBean() throws Exception {
+
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ BasicStatelessHome home = (BasicStatelessHome) ctx.lookup("java:comp/env/ejb/stateless");
+ assertNotNull("The EJBHome looked up is null", home);
+
+ BasicStatelessObject object = home.create();
+ assertNotNull("The EJBObject is null", object);
+
+ }
+
+}
Added: geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiEnvEntryTest.java
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiEnvEntryTest.java Wed Sep 29 14:35:24 2004
@@ -0,0 +1,115 @@
+/**
+ *
+ * Copyright 2003-2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.itest.client;
+
+import javax.naming.InitialContext;
+
+import junit.framework.TestCase;
+
+public class JndiEnvEntryTest extends TestCase {
+
+
+ public void testLookupStringEntry() throws Exception {
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ String expected = new String("1");
+ String actual = (String) ctx.lookup("java:comp/env/entry/String");
+
+ assertNotNull("The String looked up is null", actual);
+ assertEquals(expected, actual);
+ }
+
+ public void testLookupDoubleEntry() throws Exception {
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ Double expected = new Double(1.0D);
+ Double actual = (Double) ctx.lookup("java:comp/env/entry/Double");
+
+ assertNotNull("The Double looked up is null", actual);
+ assertEquals(expected, actual);
+ }
+
+ public void testLookupLongEntry() throws Exception {
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ Long expected = new Long(1L);
+ Long actual = (Long) ctx.lookup("java:comp/env/entry/Long");
+
+ assertNotNull("The Long looked up is null", actual);
+ assertEquals(expected, actual);
+ }
+
+ public void testLookupFloatEntry() throws Exception {
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ Float expected = new Float(1.0F);
+ Float actual = (Float) ctx.lookup("java:comp/env/entry/Float");
+
+ assertNotNull("The Float looked up is null", actual);
+ assertEquals(expected, actual);
+ }
+
+ public void testLookupIntegerEntry() throws Exception {
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ Integer expected = new Integer(1);
+ Integer actual = (Integer) ctx.lookup("java:comp/env/entry/Integer");
+
+ assertNotNull("The Integer looked up is null", actual);
+ assertEquals(expected, actual);
+ }
+
+ public void testLookupShortEntry() throws Exception {
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ Short expected = new Short((short) 1);
+ Short actual = (Short) ctx.lookup("java:comp/env/entry/Short");
+
+ assertNotNull("The Short looked up is null", actual);
+ assertEquals(expected, actual);
+ }
+
+ public void testLookupBooleanEntry() throws Exception {
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ Boolean expected = new Boolean(true);
+ Boolean actual = (Boolean) ctx.lookup("java:comp/env/entry/Boolean");
+
+ assertNotNull("The Boolean looked up is null", actual);
+ assertEquals(expected, actual);
+ }
+
+ public void testLookupByteEntry() throws Exception {
+ InitialContext ctx = new InitialContext();
+ assertNotNull("The InitialContext is null", ctx);
+
+ Byte expected = new Byte((byte) 1);
+ Byte actual = (Byte) ctx.lookup("java:comp/env/entry/Byte");
+
+ assertNotNull("The Byte looked up is null", actual);
+ assertEquals(expected, actual);
+ }
+
+}
Added: geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiMessageDestinationRefTest.java
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiMessageDestinationRefTest.java Wed Sep 29 14:35:24 2004
@@ -0,0 +1,35 @@
+/**
+ *
+ * Copyright 2003-2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.itest.client;
+
+import junit.framework.TestCase;
+
+public class JndiMessageDestinationRefTest extends TestCase {
+
+
+ public void testLookupMessageDestinationRef() throws Exception {
+// InitialContext ctx = new InitialContext();
+// assertNotNull("The InitialContext is null", ctx);
+//
+// //TODO Complete test
+// Object ref = (Object) ctx.lookup("java:comp/env/name");
+// assertNotNull(ref);
+// assertTrue(ref instanceof Object);
+ }
+
+}
Added: geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiResourceEnvRefTest.java
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiResourceEnvRefTest.java Wed Sep 29 14:35:24 2004
@@ -0,0 +1,35 @@
+/**
+ *
+ * Copyright 2003-2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.itest.client;
+
+import junit.framework.TestCase;
+
+public class JndiResourceEnvRefTest extends TestCase {
+
+
+ public void testLookupResourceEnvRef() throws Exception {
+// InitialContext ctx = new InitialContext();
+// assertNotNull("The InitialContext is null", ctx);
+//
+// //TODO Complete test
+// Object ref = (Object) ctx.lookup("java:comp/env/name");
+// assertNotNull(ref);
+// assertTrue(ref instanceof Object);
+ }
+
+}
Added: geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiResourceRefTest.java
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/src/itest/org/apache/geronimo/itest/client/JndiResourceRefTest.java Wed Sep 29 14:35:24 2004
@@ -0,0 +1,34 @@
+/**
+ *
+ * Copyright 2003-2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.itest.client;
+
+import junit.framework.TestCase;
+
+public class JndiResourceRefTest extends TestCase {
+
+ public void testLookupResourceRef() throws Exception {
+// InitialContext ctx = new InitialContext();
+// assertNotNull("The InitialContext is null", ctx);
+//
+// //TODO Complete test
+// Object ref = (Object) ctx.lookup("java:comp/env/name");
+// assertNotNull(ref);
+// assertTrue(ref instanceof Object);
+ }
+
+}
Added: geronimo/trunk/itests/client/src/resources/client/META-INF/application-client.xml
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/src/resources/client/META-INF/application-client.xml Wed Sep 29 14:35:24 2004
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+
+<!--DOCTYPE application-client PUBLIC
+ "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN"
+ "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd"-->
+
+<application-client xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/applicationclient_1_4.xsd"
+ version="1.4">
+
+ <display-name>Basic App Client</display-name>
+ <env-entry>
+ <env-entry-name>entry/Boolean</env-entry-name>
+ <env-entry-type>java.lang.Boolean</env-entry-type>
+ <env-entry-value>true</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entry/String</env-entry-name>
+ <env-entry-type>java.lang.String</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entry/Double</env-entry-name>
+ <env-entry-type>java.lang.Double</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entry/Long</env-entry-name>
+ <env-entry-type>java.lang.Long</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entry/Float</env-entry-name>
+ <env-entry-type>java.lang.Float</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entry/Integer</env-entry-name>
+ <env-entry-type>java.lang.Integer</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entry/Short</env-entry-name>
+ <env-entry-type>java.lang.Short</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entry/Byte</env-entry-name>
+ <env-entry-type>java.lang.Byte</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <ejb-ref>
+ <ejb-ref-name>ejb/bmp_entity</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+ <home>org.openejb.test.entity.bmp.BasicBmpHome</home>
+ <remote>org.openejb.test.entity.bmp.BasicBmpObject</remote>
+ <ejb-link>BasicBmpBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>ejb/stateful</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.openejb.test.stateful.BasicStatefulHome</home>
+ <remote>org.openejb.test.stateful.BasicStatefulObject</remote>
+ <ejb-link>BasicStatefulBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>ejb/stateless</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.openejb.test.stateless.BasicStatelessHome</home>
+ <remote>org.openejb.test.stateless.BasicStatelessObject</remote>
+ <ejb-link>BasicStatelessBean</ejb-link>
+ </ejb-ref>
+ <resource-ref>
+ <res-ref-name>datasource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+
+</application-client>
+
Added: geronimo/trunk/itests/client/src/resources/ear/META-INF/application.xml
==============================================================================
--- (empty file)
+++ geronimo/trunk/itests/client/src/resources/ear/META-INF/application.xml Wed Sep 29 14:35:24 2004
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
+<application>
+ <display-name>MagicGBall</display-name>
+ <module>
+ <ejb>magicGball-ejb.jar</ejb>
+ </module>
+ <module>
+ <web>
+ <web-uri>magicGball.war</web-uri>
+ <context-root>magicGball</context-root>
+ </web>
+ </module>
+ <module>
+ <java>magicGball-client.jar</java>
+ </module>
+</application>