<?xml version="1.0" encoding="EUC-JP"?>

<!DOCTYPE document SYSTEM "./dtd/document-v10.dtd">

<document>
  <header>
    <title>ViAJava and Tomcat Test Environment</title>
    <authors>
      <person name="Vincent Massol" email="vmassol@apache.org"/>
    </authors>
    <translators><person name="漆島賢二"/></translators>
  </header>

  <body>

    <s1 title="序文および必要条件/Forewords and Requirements">

      <note>
        <strong>This tutorial is written for Cactus 1.2 only. It will need
        to adapted if you're using Cactus 1.3</strong>
      </note>
      <note>
        <strong>本チュートリアルは Cactus 1.2 のみに対応して書かれています。
	Cactus 1.3 を使っている場合、それに適応させる必要があります。</strong>
      </note>

      <p>
        This tutorial explains how to run Cactus tests within VisualAge for
        Java Tomcat Test Environment.
      </p>
      <p>
	このチュートリアルでは、VisualAge for Java Tomcat Test Environment において
	Cactus テストを行う方法について説明します。
      </p>
      <p>
        The following tutorial has been tested with VisualAge 3.5.3 and Apache
        Tomcat Test Environment 3.1. Please tell us if you find that it works
        with other versions.
      </p>
      <p>
	次のチュートリアルは VisualAge 3.5.3 および
	Apache Tomcat Test Environment 3.1 上で動作確認しました。
	他のバージョンで動作確認した場合には、どうぞ連絡ください。
      </p>

    </s1>

    <s1 title="手順/Steps">

      <p>
        Let's call <strong><code>{VAJava dir}</code></strong> the directory
        where VAJava is installed. Let's also suppose that the context of our
        webapp is called <strong><code>myApp</code></strong>.
      </p>
      <p>
	VaJava がインストールされたディレクトリを
	<strong><code>{VAJava dir}</code></strong> と呼びます。
	自分の webapp のコンテキストを
	<strong><code>myApp</code></strong> と呼ぶことにします。
      </p>

      <ul>
        <li>
          Import Cactus and JUnit into VisualAge as projects,
        </li>
        <li>
	  Cactus と JUnit を VisualAge のプロジェクトとしてインポートします。
        </li>
        <li>
          Add the Cactus redirector mappings to your web.xml file (see the
          <link href="howto_config.xml">Configuration Howto</link>), which is
          located at
          <code>{VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\</code>,
        </li>
        <li>
	  <code>{VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\</code> にある
	  自分の web.xml ファイルに Cactus リダイレクタのマッピングを加えます。
	  (<link href="howto_config.xml">設定 Howto</link>をご覧ください)
          Add the Cactus redirector mappings to your web.xml file (see the
          <link href="howto_config.xml">Configuration Howto</link>), 
        </li>
        <li>
          Make sure the <code>cactus.properties</code> file has the correct
          URL for the redirectors (see the
          <link href="howto_config.xml">Configuration Howto</link>). Put the
          file in
          <code>{VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\</code>,
        </li>
        <li>
	  <code>cactus.properties</code> ファイルにおいて、
	  リダイレクタとして正しいURLが設定されているか確認します。
	  (<link href="howto_config.xml">Configuration Howto</link>
	  をご覧ください)
	  そのファイルを
	  <code>{VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\</code> に置きます。
        </li>
        <li>
          Add the following directories to JUnit's TestRunner project classpath
          (project's properties dialog box) :
        </li>
        <li>
	  次のディレクトリを JUnit の TestRunner プロジェクトのクラスパス
	  (プロジェクトのプロパティダイアログにあります)に加えます : 
        </li>
      </ul>
<source><![CDATA[
{VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\;
{VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\classes\;
]]></source>
      <ul>
        <li>
          Add the Cactus project to both JUnit's TestRunner and Apache's
          TomcatRunner project classpath (project properties dialog boxes).
        </li>
        <li>
	  Cactus プロジェクトを JUnit の TestRunner と
	  Apache の TomcatRunner プロジェクトのクラスパス
	  (プロジェクトのプロパティダイアログにあります)に加えます。
        </li>
      </ul>

    </s1>

  </body>
</document>
