Posts by Danilo Rodrigues • 11 points
4 posts
-
0
votes2
answers1284
viewsA: How to check if a character is letter or number?
Usa Character.isDigit(...) if(Character.isDigit(frase.charAt(i))){ } If it’s real, it’s a number, or it’s a letter
-
0
votes1
answer33
viewsA: Do you run a negative test?
Yes, it is correct regardless of language Objectives of the Test Activity is to perform a program intended to discover a defect • A good test case is one that has a high probability of revealing a…
-
0
votes1
answer259
viewsA: How to test Controller with Junit?
Arthur, put @Mockbean instead of @Autowired on your service. You won’t be able to mock it with Autowired Also puts these Annotations at the top of your test class that are necessary to climb the…
-
0
votes1
answer481
viewsA: Mock local variable inside method with mockite and spring boot
This is Samuel. I believe that your call pro createOutputS3 inside the test, is instantiating the Videoencodingservice class with null values in the properties. With this, when you use…