unit tag

22 questions


1 answers
389 views
0
Java test on unit 3 doesn't work.

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...

1 years ago

1 answers
382 views
0
I would like to know if it is possible to mock only the double autowired class.

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...

1 years ago

1 answers
303 views
0
Unable to test controller with jUnit/Springboot multiple submit buttons

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...


1 answers
110 views
0
Error: Fatal Error (1): Class 'AppShell' not found in when testing the cake2.x shell with PHPUnit

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...

1 years ago

1 answers
120 views
0
CakePHP Fixure Does Not Generate Tables

UnitTest with CakePHPv2.5.5.configurationdatabases.phppublic$xxxx=array( // ...);public$test_xxxx=array( 'datasource' = > 'Database/MysqlExportDb', 'persistent' = > false, 'host' = > 'localho...

1 years ago

1 answers
120 views
0
Understanding DBUnit Per Record Comparison

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...

1 years ago

3 answers
118 views
0
I want to set the value in the private field, but it doesn't work.

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 ...

1 years ago

1 answers
119 views
0
I want to link test codes and product codes

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...

1 years ago

1 answers
101 views
0
Understanding the Definition of the mock Class to Use with Junit

Uses a mock function called setReturnValueAt in the test source for the java source.Does the mock class need to define setReturnValueAt?

1 years ago

1 answers
61 views
0
CakePHP4 Cannot Generate Code Coverage

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 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.