Uploaded image for project: 'Cubby'
  1. Cubby
  2. CUBBY-142

CubbyTestCaseを使用したテストの際に、リクエストパラメータを設定する方法をドキュメントに記載する

    XMLWordPrintable

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major Major
    • 1.1.0-rc1
    • None
    • ドキュメント
    • None

    Description

      [cubby-user:67] CubbyTestCase における Action クラスへの値のバインディングについてのご報告

      > AutoPropertyAssembler#assemble を実行するよりも、リクエストパラメータは
      > setUpメソッドで設定するのがハマりどころが少ないと思いますがどうでしょう?
      > 以下の例だと、reassemble() メソッドが追加される前の CubbyTestCase でも両
      > 方 "nice!!" が出力されます。
      >
      > public class BindingActionTest extends CubbyTestCase {
      >
      > public BindingAction action; // (1)
      >
      > protected void setUp()

      { > include("app.dicon"); > }

      >
      > public void setUpIndex()

      { > getRequest().addParameter("p", "nice!!"); > }

      >
      > public void testIndex() throws Exception

      { > processAction("/binding/"); > }

      >
      > }
      >

      Attachments

        Activity

          People

            agata agata
            agata agata
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: