unit tag

22 questions


1 answers
423 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...

2 years ago

1 answers
407 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...

2 years ago

1 answers
341 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
142 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...

2 years ago

1 answers
145 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...

2 years ago

1 answers
152 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...

2 years ago

3 answers
150 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 ...

2 years ago

1 answers
151 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...

2 years ago

1 answers
124 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?

2 years ago

1 answers
74 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/...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.