BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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

Posted by Tomas on May 11, 2024 at 10:24 PM

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

Suggested Answer: A, B

Get Premium 2V0-72.22 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
36 comments · newest first
CH
Chandra 12 months ago
Integration testing is cool, but slice testing? Never heard of that!
HA
Haydee 12 months ago
@Mock and @MockBean are super handy for testing!
WE
Wenona 1 year ago
Mockito spy works fine in Spring Boot, right?
VA
Vanna 1 year ago
I thought EasyMock was a standard? Surprised to see it’s not.
DO
Domitila 1 year ago
@SpringBootTest is definitely a go-to for ApplicationContext!
KA
Kayleigh 1 year 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.
GR
Gracie 1 year 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.
TA
Taryn 1 year ago
I remember something about Mockito being supported, but I can't recall if it's specifically for spies.
CA
Cathern 1 year ago
I think @SpringBootTest is definitely used for creating an ApplicationContext, but I'm not sure about the other options.
AR
Ardella 1 year 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.
AD
Adelina 1 year 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.
PO
Portia 1 year 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.
GE
Gearldine 1 year 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.
CH
Chau 1 year 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.
DO
Dong 1 year 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.
ME
Merilyn 2 years 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.)
RE
Regenia 1 year ago
↳ replying to Merilyn
Totally! It's all about finding the right tools for the job when it comes to Spring and Spring Boot testing.
KE
Keneth 1 year ago
↳ replying to Merilyn
Yeah, and don't forget about slice testing being supported as well. It's great for testing specific layers of your application.
AN
Antione 1 year ago
↳ replying to Merilyn
I know, right? Mockito spy not being supported is a bummer. But at least we can use @SpringBootTest for creating an ApplicationContext.
CA
Carman 2 years 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!)
GR
Gracia 1 year ago
↳ replying to Carman
Yeah, @SpringBootTest and @SpringJUnitConfig are the way to create an ApplicationContext.
RI
Rikki 1 year ago
↳ replying to Carman
Definitely, Mockito is the way to go for testing.
DO
Dominga 2 years ago
↳ replying to Carman
I agree, EasyMock is outdated. Mockito is much better.
RE
Rebeca 2 years 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!
AR
Arminda 1 year ago
↳ replying to Rebeca
I agree, those are two important points to remember.
OM
Omega 1 year ago
↳ replying to Rebeca
Yes, that's correct. And D) The spring-test dependency provides annotations such as @Mock and @MockBean.
EA
Earleen 2 years ago
↳ replying to Rebeca
I think B) @SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext.
TE
Teri 2 years 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.
BR
Brynn 2 years ago
↳ replying to Teri
Yes, slice testing has been really helpful in my projects too.
PA
Paola 2 years ago
↳ replying to Teri
I agree, @SpringBootTest and @SpringJUnitConfig are great for creating an ApplicationContext.
BI
Billye 2 years ago
I'm not sure about C, but I think E is true because both integration and slice testing are supported in Spring Boot.
BE
Bernardine 2 years ago
I agree with you, Blossom. I also believe D is true because spring-test provides annotations like @MockBean.
BL
Blossom 2 years ago
I think B is true because @SpringBootTest can create an ApplicationContext.
WI
Willetta 2 years ago
I'm not sure about C, but I think E is true because both integration and slice testing are supported in Spring Boot.
AL
Alpha 2 years ago
I agree with you, Kenda. I also think D is true because spring-test provides annotations like @MockBean.
KE
Kenda 2 years ago
I think B is true because @SpringBootTest can create an ApplicationContext.
0/2000 characters

Save Cancel