File tree Expand file tree Collapse file tree
src/test/java/com/mastercard/app/petstore/examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424import static org .mockito .Mockito .verify ;
2525import 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
You can’t perform that action at this time.
0 commit comments