[jboss-cvs] JBossAS SVN: r62144 - in trunk/embedded/docs/tutorial/junit: ide and 6 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Apr 5 17:13:25 EDT 2007
Author: bill.burke at jboss.com
Date: 2007-04-05 17:13:25 -0400 (Thu, 05 Apr 2007)
New Revision: 62144
Added:
trunk/embedded/docs/tutorial/junit/ide/src/main/resources/META-INF/
trunk/embedded/docs/tutorial/junit/ide/src/main/resources/META-INF/persistence.xml
trunk/embedded/docs/tutorial/junit/ide/src/main/resources/queue-service.xml
trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/jartests/
trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/jartests/ClasspathDeployTestCase.java
trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/jartests/JarByResourceTestCase.java
trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/MdbTestCase.java
trunk/embedded/docs/tutorial/junit/testWithJars.iml
Removed:
trunk/embedded/docs/tutorial/junit/ide/classes/
Modified:
trunk/embedded/docs/tutorial/junit/ide/src/main/java/org/jboss/embedded/tutorial/junit/beans/ExampleMDB.java
trunk/embedded/docs/tutorial/junit/ide/testWithVfs.iws
Log:
javadoc
Modified: trunk/embedded/docs/tutorial/junit/ide/src/main/java/org/jboss/embedded/tutorial/junit/beans/ExampleMDB.java
===================================================================
--- trunk/embedded/docs/tutorial/junit/ide/src/main/java/org/jboss/embedded/tutorial/junit/beans/ExampleMDB.java 2007-04-05 19:11:23 UTC (rev 62143)
+++ trunk/embedded/docs/tutorial/junit/ide/src/main/java/org/jboss/embedded/tutorial/junit/beans/ExampleMDB.java 2007-04-05 21:13:25 UTC (rev 62144)
@@ -33,7 +33,7 @@
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination", propertyValue="queue/example")
})
- at Depends("jboss.mq.destination:name=example,service=Queue")
+ at Depends("jboss.mq.destination:name=example,service=Queue") // @Depends currently requires a canonical name for JMX beans
public class ExampleMDB implements MessageListener
{
public static boolean executed = false;
Added: trunk/embedded/docs/tutorial/junit/ide/src/main/resources/META-INF/persistence.xml
===================================================================
--- trunk/embedded/docs/tutorial/junit/ide/src/main/resources/META-INF/persistence.xml (rev 0)
+++ trunk/embedded/docs/tutorial/junit/ide/src/main/resources/META-INF/persistence.xml 2007-04-05 21:13:25 UTC (rev 62144)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence>
+ <persistence-unit name="custdb">
+ <jta-data-source>java:/DefaultDS</jta-data-source>
+ <properties>
+ <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+ <property name="jboss.entity.manager.jndi.name" value="java:/EntityManagers/custdb"/>
+ </properties>
+ </persistence-unit>
+</persistence>
Added: trunk/embedded/docs/tutorial/junit/ide/src/main/resources/queue-service.xml
===================================================================
--- trunk/embedded/docs/tutorial/junit/ide/src/main/resources/queue-service.xml (rev 0)
+++ trunk/embedded/docs/tutorial/junit/ide/src/main/resources/queue-service.xml 2007-04-05 21:13:25 UTC (rev 62144)
@@ -0,0 +1,7 @@
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=example">
+ <attribute name="JNDIName">queue/example</attribute>
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+</server>
\ No newline at end of file
Added: trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/jartests/ClasspathDeployTestCase.java
===================================================================
--- trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/jartests/ClasspathDeployTestCase.java (rev 0)
+++ trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/jartests/ClasspathDeployTestCase.java 2007-04-05 21:13:25 UTC (rev 62144)
@@ -0,0 +1,127 @@
+/*
+* 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.embedded.tutorial.junit.jartests;
+
+import org.jboss.embedded.junit.BaseTestCase;
+import org.jboss.embedded.tutorial.junit.beans.Customer;
+import org.jboss.embedded.tutorial.junit.beans.CustomerDAOLocal;
+import org.jboss.embedded.tutorial.junit.beans.CustomerDAORemote;
+import org.jboss.embedded.Bootstrap;
+import org.jboss.deployers.spi.DeploymentException;
+import junit.framework.Test;
+
+import javax.naming.InitialContext;
+import javax.persistence.EntityManager;
+import javax.transaction.TransactionManager;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision: 61136 $
+ */
+public class ClasspathDeployTestCase extends BaseTestCase
+{
+ public ClasspathDeployTestCase()
+ {
+ super("EjbTestCase");
+ }
+
+ public static void deploy()
+ {
+ try
+ {
+ Bootstrap.getInstance().scanClasspath("ejbTestCase.jar");
+ }
+ catch (DeploymentException e)
+ {
+ throw new RuntimeException("Unable to deploy", e);
+ }
+ }
+
+ public static void undeploy()
+ {
+ try
+ {
+ Bootstrap.getInstance().undeployClasspath("ejbTestCase.jar");
+ }
+ catch (DeploymentException e)
+ {
+ throw new RuntimeException("Unable to undeploy", e);
+ }
+ }
+
+
+
+ public static Test suite()
+ {
+ return preProcessedTest(ClasspathDeployTestCase.class);
+ }
+
+ public void testEJBs() throws Exception
+ {
+ InitialContext ctx = new InitialContext();
+ CustomerDAOLocal local = (CustomerDAOLocal) ctx.lookup("CustomerDAOBean/local");
+ CustomerDAORemote remote = (CustomerDAORemote) ctx.lookup("CustomerDAOBean/remote");
+
+ int id = local.createCustomer("Gavin");
+ Customer cust = local.findCustomer(id);
+ assertNotNull(cust);
+ System.out.println("Successfully created and found Gavin from @Local interface");
+
+ id = remote.createCustomer("Emmanuel");
+ cust = remote.findCustomer(id);
+ assertNotNull(cust);
+ System.out.println("Successfully created and found Emmanuel from @Remote interface");
+ }
+
+ public void testEntityManager() throws Exception
+ {
+ // This is a transactionally aware EntityManager and must be accessed within a JTA transaction
+ // Why aren't we using javax.persistence.Persistence? Well, our persistence.xml file uses
+ // jta-datasource which means that it is created by the EJB container/embedded JBoss.
+ // using javax.persistence.Persistence will just cause us an error
+ EntityManager em = (EntityManager) new InitialContext().lookup("java:/EntityManagers/custdb");
+
+ // Obtain JBoss transaction
+ TransactionManager tm = (TransactionManager) new InitialContext().lookup("java:/TransactionManager");
+
+ tm.begin();
+
+ Customer cust = new Customer();
+ cust.setName("Bill");
+ em.persist(cust);
+
+ assertTrue(cust.getId() > 0);
+
+ int id = cust.getId();
+
+ System.out.println("created bill in DB with id: " + id);
+
+ tm.commit();
+
+ tm.begin();
+ cust = em.find(Customer.class, id);
+ assertNotNull(cust);
+ tm.commit();
+ }
+}
Added: trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/jartests/JarByResourceTestCase.java
===================================================================
--- trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/jartests/JarByResourceTestCase.java (rev 0)
+++ trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/jartests/JarByResourceTestCase.java 2007-04-05 21:13:25 UTC (rev 62144)
@@ -0,0 +1,104 @@
+/*
+* 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.embedded.tutorial.junit.jartests;
+
+import org.jboss.embedded.junit.BaseTestCase;
+import org.jboss.embedded.tutorial.junit.beans.ExampleMDB;
+import org.jboss.embedded.tutorial.junit.vfstests.MdbTestCase;
+import org.jboss.embedded.Bootstrap;
+import org.jboss.virtual.plugins.context.vfs.AssembledDirectory;
+import org.jboss.virtual.plugins.context.vfs.AssembledContextFactory;
+import org.jboss.deployers.spi.DeploymentException;
+import junit.framework.Test;
+
+import javax.naming.InitialContext;
+import javax.jms.ConnectionFactory;
+import javax.jms.Destination;
+import javax.jms.Connection;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.jms.MessageProducer;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision: 61136 $
+ */
+public class JarByResourceTestCase extends BaseTestCase
+{
+ public JarByResourceTestCase()
+ {
+ super("MdbTestCase");
+ }
+
+ public static void deploy()
+ {
+ try
+ {
+ Bootstrap.getInstance().deployResourceBase(ExampleMDB.class);
+ }
+ catch (DeploymentException e)
+ {
+ throw new RuntimeException("Unable to deploy", e);
+ }
+ }
+
+ public static void undeploy()
+ {
+ try
+ {
+ Bootstrap.getInstance().undeployResourceBase(ExampleMDB.class);
+ }
+ catch (DeploymentException e)
+ {
+ throw new RuntimeException("Unable to undeploy", e);
+ }
+ }
+
+
+
+ public static Test suite()
+ {
+ return preProcessedTest(JarByResourceTestCase.class);
+ }
+
+ public void testMDB() throws Exception
+ {
+ ExampleMDB.executed = false;
+
+ InitialContext ctx = new InitialContext();
+ ConnectionFactory factory = (ConnectionFactory) ctx.lookup("ConnectionFactory");
+ Destination destination = (Destination) ctx.lookup("queue/example");
+ assertNotNull(destination);
+ Connection conn = factory.createConnection();
+ Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ TextMessage message = session.createTextMessage("hello");
+ MessageProducer producer = session.createProducer(destination);
+ producer.send(message);
+ session.close();
+ conn.close();
+ // wait a second just to make sure message was delivered.
+ Thread.sleep(1000);
+ assertTrue(ExampleMDB.executed);
+ }
+}
Added: trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/MdbTestCase.java
===================================================================
--- trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/MdbTestCase.java (rev 0)
+++ trunk/embedded/docs/tutorial/junit/ide/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/MdbTestCase.java 2007-04-05 21:13:25 UTC (rev 62144)
@@ -0,0 +1,110 @@
+/*
+* 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.embedded.tutorial.junit.vfstests;
+
+import junit.framework.Test;
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.embedded.Bootstrap;
+import org.jboss.embedded.junit.BaseTestCase;
+import org.jboss.embedded.tutorial.junit.beans.ExampleMDB;
+import org.jboss.virtual.plugins.context.vfs.AssembledContextFactory;
+import org.jboss.virtual.plugins.context.vfs.AssembledDirectory;
+
+import javax.jms.Connection;
+import javax.jms.ConnectionFactory;
+import javax.jms.Destination;
+import javax.jms.MessageProducer;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.naming.InitialContext;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision: 61136 $
+ */
+public class MdbTestCase extends BaseTestCase
+{
+ public MdbTestCase()
+ {
+ super("MdbTestCase");
+ }
+
+ private static AssembledDirectory jar;
+
+ public static void deploy()
+ {
+ jar = AssembledContextFactory.getInstance().create("ejbTestCase.jar");
+ jar.addClass(ExampleMDB.class);
+ jar.addResource("queue-service.xml");
+ try
+ {
+ Bootstrap.getInstance().deploy(jar);
+ }
+ catch (DeploymentException e)
+ {
+ throw new RuntimeException("Unable to deploy", e);
+ }
+ }
+
+ public static void undeploy()
+ {
+ try
+ {
+ Bootstrap.getInstance().undeploy(jar);
+ AssembledContextFactory.getInstance().remove(jar);
+ jar = null;
+ }
+ catch (DeploymentException e)
+ {
+ throw new RuntimeException("Unable to undeploy", e);
+ }
+ }
+
+
+
+ public static Test suite()
+ {
+ return preProcessedTest(MdbTestCase.class);
+ }
+
+ public void testMDB() throws Exception
+ {
+ ExampleMDB.executed = false;
+
+ InitialContext ctx = new InitialContext();
+ ConnectionFactory factory = (ConnectionFactory) ctx.lookup("ConnectionFactory");
+ Destination destination = (Destination) ctx.lookup("queue/example");
+ assertNotNull(destination);
+ Connection conn = factory.createConnection();
+ Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ TextMessage message = session.createTextMessage("hello");
+ MessageProducer producer = session.createProducer(destination);
+ producer.send(message);
+ session.close();
+ conn.close();
+ // wait a second just to make sure message was delivered.
+ Thread.sleep(1000);
+ assertTrue(ExampleMDB.executed);
+ }
+}
Modified: trunk/embedded/docs/tutorial/junit/ide/testWithVfs.iws
===================================================================
--- trunk/embedded/docs/tutorial/junit/ide/testWithVfs.iws 2007-04-05 19:11:23 UTC (rev 62143)
+++ trunk/embedded/docs/tutorial/junit/ide/testWithVfs.iws 2007-04-05 21:13:25 UTC (rev 62144)
@@ -143,7 +143,7 @@
<file leaf-file-name="EjbTestCase.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/EjbTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="181" column="0" selection-start="5530" selection-end="5530" vertical-scroll-proportion="0.9664363">
+ <state line="181" column="0" selection-start="5530" selection-end="5530" vertical-scroll-proportion="0.9012833">
<folding />
</state>
</provider>
@@ -158,42 +158,26 @@
</provider>
</entry>
</file>
- <file leaf-file-name="EasierEjbTestCase.java" pinned="false" current="true" current-in-tab="true">
+ <file leaf-file-name="EasierEjbTestCase.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/EasierEjbTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="44" column="13" selection-start="1845" selection-end="1845" vertical-scroll-proportion="0.1846002">
+ <state line="44" column="13" selection-start="1845" selection-end="1845" vertical-scroll-proportion="0.016781837">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="TestCaseHelper.class" pinned="false" current="false" current-in-tab="false">
- <entry file="jar://$PROJECT_DIR$/../../../../output/lib/embedded-jboss/lib/jboss-embedded-all.jar!/org/jboss/embedded/junit/TestCaseHelper.class">
+ <file leaf-file-name="MdbTestCase.java" pinned="false" current="true" current-in-tab="true">
+ <entry file="file://$PROJECT_DIR$/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/MdbTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="16" column="22" selection-start="581" selection-end="581" vertical-scroll-proportion="0.25172755">
- <folding />
+ <state line="105" column="63" selection-start="3411" selection-end="3411" vertical-scroll-proportion="1.1609082">
+ <folding>
+ <element signature="imports" expanded="true" />
+ </folding>
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="tutorial-persistence.xml" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/src/main/resources/tutorial-persistence.xml">
- <provider selected="true" editor-type-id="text-editor">
- <state line="10" column="0" selection-start="389" selection-end="389" vertical-scroll-proportion="0.16781837">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="CustomerDAOBean.java" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/src/main/java/org/jboss/embedded/tutorial/junit/beans/CustomerDAOBean.java">
- <provider selected="true" editor-type-id="text-editor">
- <state line="34" column="13" selection-start="1331" selection-end="1331" vertical-scroll-proportion="0.20138204">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
</leaf>
</component>
<component name="FindManager">
@@ -330,10 +314,6 @@
<option name="myItemId" value="PsiDirectory:C:\jboss\jboss-head\embedded\docs\tutorial\junit\ide\src\test\java" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="PsiDirectory:C:\jboss\jboss-head\embedded\docs\tutorial\junit\ide\src\test\java\org\jboss\embedded\tutorial\junit\vfstests" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
@@ -404,7 +384,7 @@
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
- <showStructure ProjectPane="false" PackagesPane="false" Favorites="false" />
+ <showStructure Favorites="false" ProjectPane="false" Scope="false" PackagesPane="false" />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
@@ -423,21 +403,22 @@
</component>
<component name="RecentsManager" />
<component name="RestoreUpdateTree" />
- <component name="RunManager" selected="JUnit.org.jboss.embedded.tutorial.junit.vfstests in testWithVfs">
- <tempConfiguration default="false" name="org.jboss.embedded.tutorial.junit.vfstests in testWithVfs" type="JUnit" factoryName="JUnit" enabled="false" merge="false">
+ <component name="RunManager" selected="JUnit.MdbTestCase">
+ <tempConfiguration default="false" name="MdbTestCase" type="JUnit" factoryName="JUnit" enabled="false" merge="false">
+ <pattern value="org.jboss.embedded.tutorial.junit.vfstests.*" />
<module name="testWithVfs" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PACKAGE_NAME" value="org.jboss.embedded.tutorial.junit.vfstests" />
- <option name="MAIN_CLASS_NAME" />
+ <option name="MAIN_CLASS_NAME" value="org.jboss.embedded.tutorial.junit.vfstests.MdbTestCase" />
<option name="METHOD_NAME" />
- <option name="TEST_OBJECT" value="package" />
+ <option name="TEST_OBJECT" value="class" />
<option name="VM_PARAMETERS" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ADDITIONAL_CLASS_PATH" />
<option name="TEST_SEARCH_SCOPE">
- <value defaultName="singleModule" />
+ <value defaultName="wholeProject" />
</option>
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Run" />
@@ -457,23 +438,6 @@
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
</configuration>
- <configuration default="true" type="Application" factoryName="Application" enabled="false" merge="false">
- <option name="MAIN_CLASS_NAME" />
- <option name="VM_PARAMETERS" />
- <option name="PROGRAM_PARAMETERS" />
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
- <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
- <option name="ALTERNATIVE_JRE_PATH" />
- <option name="ENABLE_SWING_INSPECTOR" value="false" />
- <module name="" />
- </configuration>
- <configuration default="true" type="Remote" factoryName="Remote">
- <option name="USE_SOCKET_TRANSPORT" value="true" />
- <option name="SERVER_MODE" value="false" />
- <option name="SHMEM_ADDRESS" value="javadebug" />
- <option name="HOST" value="localhost" />
- <option name="PORT" value="5005" />
- </configuration>
<configuration default="true" type="JUnit" factoryName="JUnit" enabled="false" merge="false">
<module name="" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
@@ -493,6 +457,23 @@
<option name="Make" value="true" />
</method>
</configuration>
+ <configuration default="true" type="Remote" factoryName="Remote">
+ <option name="USE_SOCKET_TRANSPORT" value="true" />
+ <option name="SERVER_MODE" value="false" />
+ <option name="SHMEM_ADDRESS" value="javadebug" />
+ <option name="HOST" value="localhost" />
+ <option name="PORT" value="5005" />
+ </configuration>
+ <configuration default="true" type="Application" factoryName="Application" enabled="false" merge="false">
+ <option name="MAIN_CLASS_NAME" />
+ <option name="VM_PARAMETERS" />
+ <option name="PROGRAM_PARAMETERS" />
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
+ <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
+ <option name="ALTERNATIVE_JRE_PATH" />
+ <option name="ENABLE_SWING_INSPECTOR" value="false" />
+ <module name="" />
+ </configuration>
<configuration default="false" name="EjbTestCase" type="JUnit" factoryName="JUnit" enabled="false" merge="false">
<pattern value="org.jboss.embedded.tutorial.junit.vfstests.*" />
<module name="testWithVfs" />
@@ -520,7 +501,16 @@
<Port>5050</Port>
</configuration>
</component>
- <component name="ScopeViewComponent" />
+ <component name="ScopeViewComponent">
+ <subPane subId="Project">
+ <PATH>
+ <PATH_ELEMENT USER_OBJECT="Root">
+ <option name="myItemId" value="" />
+ <option name="myItemType" value="" />
+ </PATH_ELEMENT>
+ </PATH>
+ </subPane>
+ </component>
<component name="SelectInManager" />
<component name="StarteamConfiguration">
<option name="SERVER" value="" />
@@ -587,16 +577,16 @@
</component>
<component name="ToolWindowManager">
<frame x="14" y="-13" width="1909" height="1172" extended-state="0" />
- <editor active="false" />
+ <editor active="true" />
<layout>
<window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
<window_info id="CVS" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
<window_info id="IDEtalk" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="7" />
- <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24973032" order="0" />
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24973032" order="0" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="1" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="1" />
- <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32950193" order="8" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="6" />
<window_info id="Module Dependencies" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
@@ -697,13 +687,6 @@
<option name="myLastEditedConfigurable" />
</component>
<component name="editorHistoryManager">
- <entry file="jar://$PROJECT_DIR$/../../../../output/lib/embedded-jboss/optional-lib/junit.jar!/junit/framework/TestSuite.class">
- <provider selected="true" editor-type-id="text-editor">
- <state line="5" column="13" selection-start="153" selection-end="153" vertical-scroll-proportion="0.06712735">
- <folding />
- </state>
- </provider>
- </entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/tutorial-persistence.xml">
<provider selected="true" editor-type-id="text-editor">
<state line="10" column="0" selection-start="389" selection-end="389" vertical-scroll-proportion="0.16781837">
@@ -718,27 +701,36 @@
</state>
</provider>
</entry>
- <entry file="jar://$PROJECT_DIR$/../../../../output/lib/embedded-jboss/lib/jboss-embedded-all.jar!/org/jboss/embedded/junit/TestCaseHelper.class">
+ <entry file="file://$PROJECT_DIR$/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/EjbTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="16" column="22" selection-start="581" selection-end="581" vertical-scroll-proportion="0.25172755">
+ <state line="181" column="0" selection-start="5530" selection-end="5530" vertical-scroll-proportion="0.9012833">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/EjbTestCase.java">
+ <entry file="jar://$PROJECT_DIR$/../../../../output/lib/embedded-jboss/optional-lib/junit.jar!/junit/framework/TestSuite.class">
<provider selected="true" editor-type-id="text-editor">
- <state line="181" column="0" selection-start="5530" selection-end="5530" vertical-scroll-proportion="0.9664363">
+ <state line="5" column="13" selection-start="153" selection-end="153" vertical-scroll-proportion="0.06712735">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/EasierEjbTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="44" column="13" selection-start="1845" selection-end="1845" vertical-scroll-proportion="0.1846002">
+ <state line="44" column="13" selection-start="1845" selection-end="1845" vertical-scroll-proportion="0.016781837">
<folding />
</state>
</provider>
</entry>
+ <entry file="file://$PROJECT_DIR$/src/test/java/org/jboss/embedded/tutorial/junit/vfstests/MdbTestCase.java">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="105" column="63" selection-start="3411" selection-end="3411" vertical-scroll-proportion="1.1609082">
+ <folding>
+ <element signature="imports" expanded="true" />
+ </folding>
+ </state>
+ </provider>
+ </entry>
</component>
</project>
Added: trunk/embedded/docs/tutorial/junit/testWithJars.iml
===================================================================
--- trunk/embedded/docs/tutorial/junit/testWithJars.iml (rev 0)
+++ trunk/embedded/docs/tutorial/junit/testWithJars.iml 2007-04-05 21:13:25 UTC (rev 62144)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module version="4" relativePaths="true" type="JAVA_MODULE">
+ <component name="ModuleRootManager" />
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
+ <exclude-output />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/ide/src/main/java" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/ide/src/test/java" isTestSource="false" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../output/lib/embedded-jboss/lib/hibernate-all.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../output/lib/embedded-jboss/optional-lib/jboss-test.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../output/lib/embedded-jboss/optional-lib/junit.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../output/lib/embedded-jboss/lib/jboss-embedded-all.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../output/lib/embedded-jboss/lib/thirdparty-all.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../output/lib/embedded-jboss/lib/jboss-embedded-tomcat-bootstrap.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="file://$MODULE_DIR$/../../../output/lib/embedded-jboss/bootstrap" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntryProperties />
+ </component>
+</module>
+
More information about the jboss-cvs-commits
mailing list