亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ejbtestcase.java

?? server-config-guide.rar,jboss 4.3配置及測(cè)試源碼
?? JAVA
字號(hào):
/* * JUnitEJB * * Distributable under LGPL license. * See terms of license at gnu.org. */package org.jboss.test.util.ejb;import java.util.Properties;import javax.naming.InitialContext;import javax.rmi.PortableRemoteObject;import junit.framework.AssertionFailedError;import junit.framework.TestCase;import junit.framework.TestResult;/** * An ejb test case is an extension to test case where the test is executed * in the ejb server's virtual machine. * * Two new methods setUpEJB and tearDownEJB have been added. These methods  * work just like setUp and tearDown except they run in a sepperate transaction. * The execution order is as follows: * <pre> * 	1. setUpEJB (TX 1) * 	2. run (TX 2) * 		2.1. runBare * 			2.1.1 setUp * 			2.1.2 <your test method> * 			2.1.3 tearDown * 	3. ejbTearDown (TX 2) * </pre> * * For an ejb test case to run successfully, the following must be setup: * <pre> * 	1. The ejb test case class must be availabe to the client vm. * 	2. The ejb test case class must be availabe to the EJBTestRunner bean * 			on the server. * 	3. The EJBTestRunnerHome must be bound to "ejb/EJBTestRunner" in the * 			jndi context obtained from new InitialContext(); * 	4. The EJBTestRunner bean must be configured as specified in the  * 			EJBTestRunner javadoc. * </pre> * * @see EJBTestRunner * @see junit.framework.TestCase * * @author <a href="mailto:dain@daingroup.com">Dain Sundstrom</a> * @author Scott.Stark@jboss.org * @version $Revision: 1.1 $ */public class EJBTestCase extends TestCase{   private boolean serverSide = false;   protected Properties props;   /**    * Constructs a test case that will run the method with the specified name.    * @param methodName the name of the method that will executed when this     * 		test is run    */   public EJBTestCase(String methodName)   {      super(methodName);   }   /**    * Sets the flag that is used to determine if the class    * is running on the server side.    * @param serverSide boolean flag that this class uses to determine    * 		if it's running on the server side.    */   public void setServerSide(boolean serverSide)   {      this.serverSide = serverSide;   }   /**    * Is this class running on the server side?    * @return true if this class is running on the server side	     */   public boolean isServerSide()   {      return serverSide;   }   /** Allow EJBTestCase subclasses to override the EJBRunnerHome JNDI name    * @return The JNDI name of the EJBRunnerHome home interface binding. The    * default is "ejb/EJBTestRunner"    */    public String getEJBRunnerJndiName()   {      return "ejb/EJBTestRunner";   }   /**    * @return the properties associated with the test case    */    public Properties getProps()   {      return props;   }   /**    * @param props the properties associated with the test case    */    public void setProps(Properties props)   {      this.props = props;   }   public void run(TestResult result)   {      ClassLoader oldClassLoader = null;      try      {         // If we are on the server side, set the thread context class loader         // to the class loader that loaded this class. This fixes problems         // with the current implementation of the JUnit gui test runners class         // reloading logic. The gui relods the test classes with each run but          // does not set the context class loader so calls to Class.forName load         // the class in the wrong class loader.         if (!isServerSide())         {            oldClassLoader = Thread.currentThread().getContextClassLoader();            Thread.currentThread().setContextClassLoader(               getClass().getClassLoader());         }         super.run(result);      }      finally      {         // be a good citizen, reset the context loader         if (oldClassLoader != null)         {            Thread.currentThread().setContextClassLoader(oldClassLoader);         }      }   }   public void runBare() throws Throwable   {      if (!isServerSide())      {         // We're not on the server side yet, invoke the test on the serverside.         EJBTestRunner testRunner = null;         try         {            testRunner = getEJBTestRunner();            if( props != null )               testRunner.run(getClass().getName(), getName(), props);            else               testRunner.run(getClass().getName(), getName());         }         catch (RemoteTestException e)         {            // if the remote test exception is from an assertion error            // rethrow it with a sub class of AssertionFailedError so it is             // picked up as a failure and not an error.            // The server has to throw sub classes of Error because that is the            // allowable scope of application exceptions. So             // AssertionFailedError which is an instance of error has to be            // wrapped in an exception.            Throwable remote = e.getRemoteThrowable();            if (remote instanceof AssertionFailedError)            {               throw new RemoteAssertionFailedError(                  (AssertionFailedError) remote, e.getRemoteStackTrace());            }            throw e;         }         finally         {            // be a good citizen, drop my ref to the session bean.            if (testRunner != null)            {               testRunner.remove();            }         }      }      else      {         // We're on the server side so, invoke the test the usual way.         super.runBare();      }   }   /** Sets up the ejb test case. This method is called before    * each test is executed and is run in a private transaction.    * @param props the properties passed in from the client    * @throws Exception if a problem occures    */   public void setUpEJB(Properties props) throws Exception   {      this.props = props;   }   /** Tears down the ejb test case. This method is called after    * each test is executed and is run in a private transaction.    * @param props the properties passed in from the client    * @throws Exception if a problem occures    */   public void tearDownEJB(Properties props) throws Exception   {   }   /**    * Looks up the ejb test runner home in JNDI (at "ejb/EJBTestRunner")    * and creates a new runner.    * @throws Exception if any problem happens    */   private EJBTestRunner getEJBTestRunner() throws Exception   {      InitialContext jndiContext = new InitialContext();      // Get a reference from this to the Bean's Home interface      String name = getEJBRunnerJndiName();      Object ref = jndiContext.lookup(name);      EJBTestRunnerHome runnerHome = (EJBTestRunnerHome)         PortableRemoteObject.narrow(ref, EJBTestRunnerHome.class);      // create the test runner      return runnerHome.create();   }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩午夜精品| 韩国在线一区二区| 99久久99久久免费精品蜜臀| 国产精品卡一卡二卡三| 成人免费看黄yyy456| 中文字幕在线不卡视频| 97超碰欧美中文字幕| 亚洲蜜臀av乱码久久精品蜜桃| 91激情五月电影| 亚洲va欧美va国产va天堂影院| 欧美一级二级三级蜜桃| 国产在线一区二区| 国产欧美日韩在线观看| 97se狠狠狠综合亚洲狠狠| 亚洲一区二区三区四区中文字幕| 欧美精品v国产精品v日韩精品| 久久激情综合网| 国产精品每日更新在线播放网址| 色狠狠av一区二区三区| 国产乱码精品一区二区三区五月婷| 国产欧美日韩精品a在线观看| 色婷婷综合视频在线观看| 免费av网站大全久久| 亚洲国产精品成人综合| 精品视频在线免费观看| 国产精品一区二区免费不卡| 亚洲理论在线观看| 日韩欧美一区中文| zzijzzij亚洲日本少妇熟睡| 亚瑟在线精品视频| 国产精品伦理一区二区| 51精品秘密在线观看| youjizz久久| 久久99精品久久久久久国产越南 | 欧美猛男gaygay网站| 美女在线观看视频一区二区| 国产精品久久免费看| 欧美浪妇xxxx高跟鞋交| 国产91高潮流白浆在线麻豆| 午夜成人在线视频| 亚洲色图在线播放| 久久婷婷久久一区二区三区| 欧美日韩国产中文| 91在线你懂得| 懂色av一区二区夜夜嗨| 亚洲777理论| 一区视频在线播放| 精品国产99国产精品| 欧美色男人天堂| 97国产精品videossex| 国产精品自拍一区| 日本成人在线电影网| 亚洲精品一卡二卡| 国产精品福利电影一区二区三区四区| 日韩三区在线观看| 欧美日韩精品三区| 91视频.com| 9i在线看片成人免费| 国产mv日韩mv欧美| 国产一区二区伦理片| 精品伊人久久久久7777人| 午夜电影一区二区三区| 亚洲国产欧美另类丝袜| 亚洲日本青草视频在线怡红院| 久久久久久久久99精品| 久久免费看少妇高潮| 精品国产污污免费网站入口| 日韩一区二区中文字幕| 91精品在线免费| 欧美一区二区日韩一区二区| 欧美特级限制片免费在线观看| 国产亚洲精品福利| 日韩欧美在线1卡| 日韩精品综合一本久道在线视频| 欧美一区二区在线免费播放| 制服丝袜在线91| 3d成人动漫网站| 日韩精品在线网站| 久久综合久久鬼色中文字| 久久综合资源网| 国产三级精品在线| 欧美国产精品中文字幕| 亚洲国产高清aⅴ视频| 国产精品伦理一区二区| 亚洲视频免费观看| 亚洲国产成人av网| 免费在线观看成人| 国产一区二区成人久久免费影院| 国产综合一区二区| 粉嫩av一区二区三区粉嫩| 不卡视频在线看| 欧亚一区二区三区| 7777精品伊人久久久大香线蕉的| 91精品中文字幕一区二区三区| 欧美tickle裸体挠脚心vk| 国产三级欧美三级日产三级99 | 亚洲va欧美va人人爽午夜 | 樱花影视一区二区| 五月天一区二区三区| 美国av一区二区| 成人看片黄a免费看在线| 色婷婷国产精品久久包臀| 欧美日韩中文国产| 久久综合久久综合九色| 亚洲天堂成人网| 美女视频网站久久| 成人免费电影视频| 欧美日韩卡一卡二| 久久精品视频在线免费观看 | 久久久电影一区二区三区| 国产精品久久午夜夜伦鲁鲁| 午夜伊人狠狠久久| 精品亚洲成a人在线观看| av成人老司机| 日韩亚洲欧美成人一区| 国产精品狼人久久影院观看方式| 亚洲成人免费看| 国产v日产∨综合v精品视频| 欧美探花视频资源| 国产欧美日韩不卡免费| 亚洲福利一区二区| 大尺度一区二区| 欧美一区二区三区播放老司机| 国产精品沙发午睡系列990531| 性久久久久久久| jlzzjlzz国产精品久久| 日韩一级大片在线| 一区二区三区四区蜜桃| 国产尤物一区二区| 欧美精品 日韩| 国产精品久久久久久亚洲毛片 | 69久久99精品久久久久婷婷| 国产精品乱人伦| 久久精品国产成人一区二区三区| 色综合色综合色综合色综合色综合| 亚洲欧美综合网| 久久精品国产99久久6| 91久久精品一区二区三| 欧美国产欧美综合| 精品在线观看视频| 欧美一级久久久| 亚洲国产精品久久人人爱蜜臀| jlzzjlzz欧美大全| 久久久99精品免费观看| 日本中文在线一区| 在线观看免费一区| 亚洲免费看黄网站| 不卡一区二区中文字幕| 久久精品一区二区三区av| 奇米四色…亚洲| 欧美日韩国产综合视频在线观看| 亚洲精品欧美综合四区| 国产成a人亚洲精品| 久久亚洲欧美国产精品乐播| 日韩电影一区二区三区| 欧美日韩精品系列| 亚洲国产一区在线观看| 色噜噜偷拍精品综合在线| 国产精品丝袜一区| 成人免费观看男女羞羞视频| 精品日韩一区二区三区免费视频| 日一区二区三区| 7777精品伊人久久久大香线蕉| 午夜婷婷国产麻豆精品| 欧美久久免费观看| 丝瓜av网站精品一区二区| 欧美日韩三级在线| 亚洲成人精品一区| 欧美日本在线观看| 日本不卡的三区四区五区| 欧美一级欧美三级在线观看| 天堂蜜桃一区二区三区| 91麻豆精品国产自产在线观看一区 | 精品国产第一区二区三区观看体验 | 亚洲一区二区av在线| 91麻豆免费观看| 亚洲精品日日夜夜| 欧美性做爰猛烈叫床潮| 亚洲成人福利片| 欧美成人精品高清在线播放| 精品夜夜嗨av一区二区三区| 久久久99久久| 99re6这里只有精品视频在线观看| 亚洲欧美一区二区三区孕妇| 色综合天天狠狠| 日本中文字幕一区二区视频| www国产成人| 99久久精品免费看国产| 亚洲午夜久久久久中文字幕久| 51精品国自产在线| 国产高清不卡一区| 亚洲色图在线视频| 欧美精品v日韩精品v韩国精品v| 久久99热99| 亚洲婷婷在线视频| 欧美日韩国产经典色站一区二区三区 | 成人sese在线| 亚洲一区二区高清| 久久综合九色综合久久久精品综合| av中文字幕亚洲|