Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Oct 18, 2024
1 parent 3842f12 commit 2aa3f40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* Example service interface for mocking tests.
*
* @author Phillip Webb
* @since 6.2
*/
public interface ExampleService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
import org.mockito.Mockito;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -32,6 +31,7 @@

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;

/**
Expand Down Expand Up @@ -63,7 +63,7 @@ void beanReturnedByFactoryIsSpied() {
doReturn("sp-hi").when(this.testBean).hello();

assertThat(bean.hello()).as("after stubbing").isEqualTo("sp-hi");
verify(bean, Mockito.times(2)).hello();
verify(bean, times(2)).hello();
}

@Order(2)
Expand Down

0 comments on commit 2aa3f40

Please sign in to comment.