Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support for ManualCompletion in TestActivity Env

オープン
#2,573 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java
領域
testing

調査の方向性

TestActivityEnvironment と Activity.getExecutionContext().useLocalManualCompletion() のパスから始め、issue で説明されている Test Interceptor と TestEnvironment のアプローチと比較します。意図された結果がテストでの ManualActivityCompletionClient のサポートなのか、mock 可能なクライアント supplier なのかを判断し、選択した動作を示すテストを定義します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.

Testing an Activity in isolation is feasible with the TestActivityEnvironment. However is a challenge when using ManualActivityCompletionClient

var manualActivityCompletionClient =
          Activity.getExecutionContext().useLocalManualCompletion();
  1. Error: Method temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskCompleted is unimplemented'
  2. Alternatively, I still couldn't test it with a Test Interceptor based approach. Down the useLocalManualCompletion implementation, it returns new clients, so unable to mock.

Describe the solution you'd like
Either

  • support to test with ManualCompletionClient (or)
  • ability to return a mock of ManualActivityCompletionClient in useLocalManualCompletion(). Maybe a client supplier? (or)

Describe alternatives you've considered

  • tried interceptor approach to test and with TestEnvironment

Additional context

  • or should we discourage usage of ManualCompletionClient in java docs .
主要言語
Java
スター
434
フォーク
252
平均マージ
6日 5時間
マージ済み PR(30日)
25

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

temporalio/sdk-java のほかの issue

temporalio/sdk-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。