File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
src/test/java/guru/springframework/sfgpetclinic/services/springdatajpa Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ package guru .springframework .sfgpetclinic .services .springdatajpa ;
2+
3+ import guru .springframework .sfgpetclinic .model .Speciality ;
4+ import guru .springframework .sfgpetclinic .repositories .SpecialtyRepository ;
5+ import org .junit .jupiter .api .Test ;
6+ import org .junit .jupiter .api .extension .ExtendWith ;
7+ import org .mockito .InjectMocks ;
8+ import org .mockito .Mock ;
9+ import org .mockito .junit .jupiter .MockitoExtension ;
10+
11+ import static org .junit .jupiter .api .Assertions .*;
12+
13+ @ ExtendWith (MockitoExtension .class )
14+ class SpecialitySDJpaServiceTest {
15+
16+ @ Mock
17+ SpecialtyRepository specialtyRepository ;
18+
19+ @ InjectMocks
20+ SpecialitySDJpaService service ;
21+
22+ @ Test
23+ void deleteById () {
24+ service .deleteById (1L );
25+ }
26+
27+ @ Test
28+ void testDelete (){
29+ service .delete (new Speciality ());
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments