Skip to content

Commit 2688ac1

Browse files
committed
fix sonar issue
1 parent b5dad3b commit 2688ac1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/java/com/mastercard/app/petstore/examples/PetFlowExampleTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import static org.mockito.Mockito.verify;
2525
import static org.mockito.Mockito.when;
2626

27-
public class PetFlowExampleTest {
27+
class PetFlowExampleTest {
2828

2929
@InjectMocks
3030
private PetFlowExample petFlowExample;
@@ -36,12 +36,12 @@ public class PetFlowExampleTest {
3636
private PetService petService;
3737

3838
@BeforeEach
39-
public void setup() {
39+
void setup() {
4040
MockitoAnnotations.openMocks(this);
4141
}
4242

4343
@Test
44-
public void testPetUseCaseFlow() throws ApiException {
44+
void testPetUseCaseFlow() throws ApiException {
4545
NewCat newCat = new NewCat();
4646
UUID catId = UUID.randomUUID();
4747
Cat cat = new Cat(catId, new Date(), new Date()).name("Whiskers");
@@ -64,7 +64,7 @@ public void testPetUseCaseFlow() throws ApiException {
6464
}
6565

6666
@Test
67-
public void testPetUseCaseFlowThrowsApiException() throws ApiException {
67+
void testPetUseCaseFlowThrowsApiException() throws ApiException {
6868
NewCat newCat = new NewCat();
6969
when(catService.addCat(any(NewCat.class))).thenThrow(new ApiException("API error"));
7070

0 commit comments

Comments
 (0)