# Temporal Signals unit test in java

**URL:** <https://community.temporal.io/t/temporal-signals-unit-test-in-java/11877>\
**Category:** Community Support\
**Created:** [April 23, 2024, 8:20am UTC](https://community.temporal.io/t/temporal-signals-unit-test-in-java/11877 "2024-04-23T08:20:39Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Mohammed1060](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mohammed1060](https://community.temporal.io/u/Mohammed1060)\
**Post date:** [April 24, 2024, 6:08am UTC](https://community.temporal.io/t/temporal-signals-unit-test-in-java/11877/7 "2024-04-24T06:08:03Z")

</div>

Hi,  
I was able to resolve the issue following this

> [@Issues with Unit Testing a Workflow with signal method](https://community.temporal.io/t/issues-with-unit-testing-a-workflow-with-signal-method/1735):
>
> Hello I am using java temporal-sdk v1.0.6. I am trying to test a Workflow with signal method using mocks for Activity. Sample code is here [Comparing temporalio:master...ansujohn:SignalWF\_Test · temporalio/samples-java · GitHub](https://github.com/temporalio/samples-java/compare/master...ansujohn:SignalWF_Test?expand=1) Couple of issues that i get in [samples-java/HelloSignalWorkflowTest.java at SignalWF\_Test · ansujohn/samples-java · GitHub](https://github.com/ansujohn/samples-java/blob/SignalWF_Test/src/test/java/io/temporal/samples/helloSignal/HelloSignalWorkflowTest.java#L19) Test failing with error “Actually, there were zero interactions with this mock” Though signalChange method is called twice, processing is done …

I have a follow up query. Can we retry a signal just like activities?

---

_[View the full topic](https://community.temporal.io/t/temporal-signals-unit-test-in-java/11877)._
