junit tag

10 questions


1 answers
386 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
374 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
293 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
113 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
113 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
111 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
99 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

2 answers
58 views
0
I want to declare the class that inherited the abstract class as an inner class in private and access it from the outside.

■ MyAbstractClass.javapublic abstract class MyAbstractClass { publicMyAbstractClass(){ } public abstract int notifyAbs(inta);}■ MyClassAbstractInnerClass.javapublicclassMyClassAbstractInnerClass{ priv...

1 years ago

1 answers
63 views
0
I want to make sure that the Spring Boot WebFlux jUnit test passes through onErrorResume()

Thank you for your continuous support.I would like to confirm that the Spring Boot WebFlux jUnit test passes through onErrorResume().When Exception occurs, the jUnit test stops and the path cannot be ...

1 years ago

1 answers
126 views
0
Please tell me your point of view when writing unit tests on unit.

We are planning to conduct a unit test using unit 5 in the project.I've never written a test code before, so I don't know from what point of view to write it.For example, I wrote it to test get(), put...

1 years ago

© 2024 OneMinuteCode. All rights reserved.