<?xml version="1.0" encoding="Shift_JIS"?>

<!DOCTYPE document SYSTEM "./dtd/document-v10.dtd">

<document>
  <header>
    <title>JBuilder 5 との統合/JBuilder 5 Integration</title>
    <authors>
      <person name="Sean Zhang" email="sean.zhang@verizon.com"/>
      <person name="Vincent Massol" email="vmassol@apache.org"/>
    </authors>
    <translators><person name="漆島賢二"/></translators>
  </header>

  <body>

    <s1 title="序文および必要条件/Forewords and Requirements">

      <p>
        This document describes steps to setup Cactus to unit test Server side
        code (i.e. EJBs, Servlets, etc) deployed to Weblogic 6.1 within
        JBuilder5 IDE.
      </p>
      <p>
	本ドキュメントでは、JBuilder5 IDE 上で Weblogic 6.1 に配備されたサーバー側コード
	(即ち EJB やサーブレットなど)
	のCactus を使った単体テストができるようセットアップする手順を説明します。
      </p>

      <p>
        The steps described below apply to current release (Cactus 1.3 as of
        this writing) and assume that Cactus has been installed correctly
        (which means that you can run sample successfully).
      </p>
      <p>
	下に示す手順は、現在のバージョン(このチュートリアルでは Cactus 1.3)に適用され、Cactus は正しくインストールされていると仮定しています。
	(これはサンプルをきちんと動かせることを意味します)
      </p>

    </s1>

    <s1 title="ステップ 1 : cactus.properties ファイルの作成/Step 1 : Create cactus.properties file">

      <p>
        Create cactus.properties file : Add entry to identify the URL of the
        redirector (see the <link href="howto_config.html">Configuration
        Howto</link> for details).
      </p>
      <p>
	cactus.properties ファイルを作成します : 
	リダイレクター URL を確認するための項目を加えます。
	(詳しくは <link href="howto_config.html">Configuration Howto</link>
	をご覧ください)
      </p>

    </s1>

    <s1 title="ステップ 2 : JBuilder5 と動作する Cactus の設定/Step 2 : Configure Cactus to work with JBuilder5">

      <p>
        Follow these steps :
      </p>
      <p>
        次の手順に従います : 
      </p>
      <ol>
        <li>
          Click Menu item Tools/Configure Libraries to open Configure Libraries
          wizard
        </li>
        <li>
	  Configure Libraries ウィザードを開くために、
	  Tools/Configure Libraries メニューを選びます。
        </li>
        <li>
          On the lefthand side of Configure Libraries wizard, click on New
          button to open New Library Wizard.
        </li>
        <li>
	  Configure Libraries ウィザードの左側で、
	  New Library Wizard を開くために、New ボタンを押します。
        </li>
        <li>
          Enter value <code>"cactus"</code> in the Name field.  Choose
          <code>"user home"</code> from the Location drop down menu.
        </li>
        <li>
	  名前フィールドに値 <code>"cactus"</code> を入力します。
	  Location ドロップメニューより <code>"user home"</code> を選択します。
        </li>
        <li>
          Click on Add button to open the dialog to choose files.
        </li>
        <li>
          ファイル選択ダイアログを開くために、Add ボタンをクリックします。
        </li>
        <li>
          Navigate to <code>[cactus home]/lib/</code> directory, select
          <code>cactus.jar</code> and click OK button.
        </li>
        <li>
	  <code>[cactus home]/lib/</code> ディレクトリへ移動し、
	  <code>cactus.jar</code> を選び、OK ボタンを押します。
        </li>
        <li>
          Click on Add button again to open the dialog to choose files.
        </li>
        <li>
	  ファイル選択ダイアログを開くために、再度 Add ボタンを押します。
        </li>
        <li>
          Navigate to the directory where the <code>cactus.properties</code>
          file is saved.
        </li>
        <li>
	  <code>cactus.properties</code> ファイルが保存されているディレクトリへ移動します。
        </li>
        <li>
          Click OK button.
        </li>
        <li>
          OK ボタンを押します。
        </li>
        <li>
          Click "Add as Class Path" button if "No Paths Found" dialog box pops
          up
        </li>
        <li>
	  "No Paths Found" ダイアログが出たら、
	  "Add as Class Path" ボタンを押します。
        </li>
        <li>
          Follow steps 2 - 6 to add <code>junit.jar</code>,
          <code>httpclient.jar</code> and <code>aspectjrt.jar</code> which are
          all in <code>[cactus home]/lib</code> directory
        </li>
        <li>
	  <code>[cactus home]/lib</code> ディレクトリにある
	  <code>junit.jar</code>、<code>httpclient.jar</code> 、
	  <code>aspectjrt.jar</code> の全てを加えるためにために、
	  ステップ 2 - 6 に従います。
        </li>
        <li>
          Optionally, add <code>log4j.jar</code> in
          <code>[cactus home]/lib</code> directory to enable cactus logging
        </li>
        <li>
	  オプションとして、
	  Cactus でログを取るために、
	  <code>[cactus home]/lib</code> ディレクトリにある
	  <code>log4j.jar</code> を加えます。
        </li>
        <li>
          Click Menu item Project/Project Properties to open Project
          Properties dialog box
        </li>
        <li>
	  Project Properties ダイアログボックスを開くために、
	  メニュー Project/Project Properties を選びます。
        </li>
        <li>
          Click Path tab and then Required Libraries tab
        </li>
        <li>
	  Path のタブをクリックし、次に、	
	  Required Libraries のタブをクリックします。
        </li>
        <li>
          Click Add button and add the libraries created above to your project.
        </li>
        <li>
	  Add ボタンを押し、自分のプロジェクトに上で作成したライブラリを加えます。
        </li>
      </ol>

    </s1>

    <s1 title="ステップ 3 : Weblogic 6.1 用の Cactus の設定/Step 3 : Configure Cactus for Weblogic6.1">

      <ol>
        <li>
          Open <code>web.xml</code> in <code>WEB-INF</code> directory of the
          web application deployed on Weblogic
        </li>
        <li>
	  Weblogic で配備されたウェブアプリケーションの
	  <code>WEB-INF</code>ディレクトリの <code>web.xml</code>を開きます。
        </li>
        <li>
          Add the mapping for the redirector under the
          <code>&lt;web-app&gt;</code> element.
        </li>
        <li>
	  <code>&lt;web-app&gt;</code> 要素の下に、
	  リダイレクタのためのマッピングを加えます。
        </li>
        <li>
          Copy <code>cactus.jar</code>, <code>junit.jar</code>,
          <code>aspectjrt.jar</code> and
          <code>log4j.jar</code>(optional) to <code>WEB-INF/lib</code>
          directory of the web application
        </li>
        <li>
	  ウェブアプリケーションの<code>WEB-INF/lib</code>ディレクトリへ、
	  <code>cactus.jar</code>、<code>junit.jar</code>、
          <code>aspectjrt.jar</code> および
          <code>log4j.jar</code>(オプション)をコピーします。
        </li>
        <li>
          Copy your classes files to <code>WEB-INF/classes</code> directory of
          the web application
        </li>
        <li>
	  ウェブアプリケーションの <code>WEB-INF/classes</code> ディレクトリに自分のクラスファイルをコピーします。
        </li>
      </ol>

    </s1>

    <s1 title="ステップ 4 : テストの実行/Step 4 : Run the test">

      <ol>
        <li>
          In JBuilder, click Menu item Project/Project Properties
        </li>
        <li>
	  JBuilder で Project/Project Properties メニューを選びます。
        </li>
        <li>
          Click Run tab and then Application tab
        </li>
        <li>
	  Run タブをクリックし、Application タブをクリックします。
        </li>
        <li>
          Open "Select Main Class for Project" dialog box and choose the test
          case class which has a main method in it.
        </li>
        <li>
	  "Select Main Class for Project" ダイアログを開き、
	  メインメソッドを定義したテストケースクラスを選びます。
        </li>
        <li>
          Run your project
        </li>
        <li>
          プロジェクトを実行します。
        </li>
      </ol>

    </s1>

  </body>
</document>
