22 questions
I created a CardDeck class, and I had a task to test it with unit 3.However, eight of the 12 methods tested fail (one appears to be hiding a failure, so it's actually nine).The CardDeck class itself w...
Questions about SpringBoot dependency injection and unit testing.Based on the class being tested, is it possible to test only the classes that are double autowired by Mock?Specifically, I would like t...
I am currently creating the springboot application and as the title suggests, I have placed several submit buttons on the form.I'd like to do a single test on the controller method, but the request do...
I created the shell program app/Console/Command/TestShell.php in cakephp2.x.The shell itself works, but when I launch the PHPUnit test code from my browser, it turns white and error.log shows the foll...
UnitTest with CakePHPv2.5.5.configurationdatabases.phppublic$xxxx=array( // ...);public$test_xxxx=array( 'datasource' = > 'Database/MysqlExportDb', 'persistent' = > false, 'host' = > 'localho...
Thank you for your continuous support.I'm struggling with how to use DBUnit, so I'd like to ask for your advice.You can compare the actual table with the data specified in Excel in DBUnit, but Is it p...
There is a private field A that is not used by others.However, I now need to access the field for testing.To do this, we decided to access it using java.lang.reflect.The field is in homegrown class B ...
Does anyone know how to link test codes and product codes?I'm currently developing software in Java, but it's getting a little complicated.I want to do the test well, so I want to know which test code...
Uses a mock function called setReturnValueAt in the test source for the java source.Does the mock class need to define setReturnValueAt?
Create a controller test with CakePHP4 and I tried to generate code coverage, but I couldn't.Refer to the article below and Cookbook > Test > Generate Code Coveragehttps://book.cakephp.org/4/ja/...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.