New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

VMware 2V0-72.22 Exam - Topic 2 Question 47 Discussion

Actual exam question for VMware's 2V0-72.22 exam
Question #: 47
Topic #: 2
[All 2V0-72.22 Questions]

Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

0/2000 characters
Chandra
3 months ago
Integration testing is cool, but slice testing? Never heard of that!
upvoted 0 times
...
Haydee
3 months ago
@Mock and @MockBean are super handy for testing!
upvoted 0 times
...
Wenona
3 months ago
Mockito spy works fine in Spring Boot, right?
upvoted 0 times
...
Vanna
4 months ago
I thought EasyMock was a standard? Surprised to see it’s not.
upvoted 0 times
...
Domitila
4 months ago
@SpringBootTest is definitely a go-to for ApplicationContext!
upvoted 0 times
...
Kayleigh
4 months ago
I have a vague memory that EasyMock isn't really supported out of the box in Spring Boot, but I could be mixing it up with something else.
upvoted 0 times
...
Gracie
4 months ago
I practiced a question similar to this, and I feel like @MockBean is part of the spring-test dependency, so that might be true.
upvoted 0 times
...
Taryn
4 months ago
I remember something about Mockito being supported, but I can't recall if it's specifically for spies.
upvoted 0 times
...
Cathern
5 months ago
I think @SpringBootTest is definitely used for creating an ApplicationContext, but I'm not sure about the other options.
upvoted 0 times
...
Ardella
5 months ago
Ah, this is a good one. I've worked with Spring Boot testing quite a bit, so I feel pretty comfortable with this. I'll go with the options I know for sure, and then try to reason through the others.
upvoted 0 times
...
Adelina
5 months ago
I remember learning about the different testing options in Spring Boot, but I'm a bit fuzzy on the details. I'll review my notes and try to eliminate the options I'm less confident about.
upvoted 0 times
...
Portia
5 months ago
Okay, let me think this through. I know Spring Boot testing has good support for mocking and creating application contexts, but I'm not sure about the specifics on EasyMock and Mockito spy. I'll focus on the annotations and testing approaches I'm more familiar with.
upvoted 0 times
...
Gearldine
5 months ago
Hmm, I'm a bit unsure about the EasyMock support. I'll have to double-check that. But I'm pretty sure Mockito spy is supported, and integration and slice testing are both options.
upvoted 0 times
...
Chau
5 months ago
I'm pretty confident about this one. I know Spring Boot testing supports both @SpringBootTest and @SpringJUnitConfig, and the spring-test dependency provides useful annotations like @Mock and @MockBean.
upvoted 0 times
...
Dong
5 months ago
This is a tricky one. The question provides a lot of details, so I want to make sure I don't miss anything. Let me go through each of the answer choices again and see if I can eliminate the one that wasn't used.
upvoted 0 times
...
Merilyn
10 months ago
Wait, wait, wait. Mockito spy not supported? I call shenanigans! Next, they'll tell us we can't use unicorn tears in our tests. (Anyway, B and E are the right answers.)
upvoted 0 times
Regenia
9 months ago
Totally! It's all about finding the right tools for the job when it comes to Spring and Spring Boot testing.
upvoted 0 times
...
Keneth
9 months ago
Yeah, and don't forget about slice testing being supported as well. It's great for testing specific layers of your application.
upvoted 0 times
...
Antione
9 months ago
I know, right? Mockito spy not being supported is a bummer. But at least we can use @SpringBootTest for creating an ApplicationContext.
upvoted 0 times
...
...
Carman
10 months ago
I can't believe they're asking about EasyMock. Who uses that these days? Mockito is the way to go, my friends. (Psst, the answer is B and E!)
upvoted 0 times
Gracia
9 months ago
Yeah, @SpringBootTest and @SpringJUnitConfig are the way to create an ApplicationContext.
upvoted 0 times
...
Rikki
9 months ago
Definitely, Mockito is the way to go for testing.
upvoted 0 times
...
Dominga
9 months ago
I agree, EasyMock is outdated. Mockito is much better.
upvoted 0 times
...
...
Rebeca
10 months ago
Ah, I'm not sure about the Mockito spy thing, but I know Mockito is heavily used in Spring Boot testing. And the spring-test dependency is a lifesaver!
upvoted 0 times
Arminda
8 months ago
I agree, those are two important points to remember.
upvoted 0 times
...
Omega
9 months ago
Yes, that's correct. And D) The spring-test dependency provides annotations such as @Mock and @MockBean.
upvoted 0 times
...
Earleen
9 months ago
I think B) @SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext.
upvoted 0 times
...
...
Teri
10 months ago
Hmm, I think B and E are the correct answers. I've used @SpringBootTest and @SpringJUnitConfig before, and slice testing has been really useful for me.
upvoted 0 times
Brynn
9 months ago
Yes, slice testing has been really helpful in my projects too.
upvoted 0 times
...
Paola
10 months ago
I agree, @SpringBootTest and @SpringJUnitConfig are great for creating an ApplicationContext.
upvoted 0 times
...
...
Billye
10 months ago
I'm not sure about C, but I think E is true because both integration and slice testing are supported in Spring Boot.
upvoted 0 times
...
Bernardine
10 months ago
I agree with you, Blossom. I also believe D is true because spring-test provides annotations like @MockBean.
upvoted 0 times
...
Blossom
11 months ago
I think B is true because @SpringBootTest can create an ApplicationContext.
upvoted 0 times
...
Willetta
11 months ago
I'm not sure about C, but I think E is true because both integration and slice testing are supported in Spring Boot.
upvoted 0 times
...
Alpha
11 months ago
I agree with you, Kenda. I also think D is true because spring-test provides annotations like @MockBean.
upvoted 0 times
...
Kenda
11 months ago
I think B is true because @SpringBootTest can create an ApplicationContext.
upvoted 0 times
...

Save Cancel