junit
Webdriver (ChromeDriver) with Play?
I\'m using ChromeDriver with Play! framework. I have a UnitTest where ChromeDriver is instantiated and make a get request to my Dyndns url. When the test starts, it opens chrome, makes the request but[详细]
2023-04-03 20:17 分类:问答Conditionally simulating exceptions/return values when testing Axis 1.4 SOAP calls
Apologies for the longwinded question... In order to test business logic which calls Axis 1.4 web services in my unit tests, I\'m currently using a Spring proxy which allows me to set exceptions and[详细]
2023-04-03 18:13 分类:问答How to JUnit testing objects which are parsed from file
I\'m working a program which is parsing some files and than process these files. The parser is well tested, but I have to test the processing part too.[详细]
2023-04-03 16:41 分类:问答java.lang.NoClassDefFoundError when trying to run JUnit tests from ANT
I\'m having problems with a java.lang.NoClassDefFoundError when trying to run my JUnit tests from ANT using the runtestsreport task in thefollowing build.xml; I know the other tasks work, it\'s just t[详细]
2023-04-03 13:23 分类:问答Run JUnit tests in parallel
When running unit tests, Gradle can execute multiple tests in parallel without any changes to the tests themselves (i.e. special annotations, test runners, etc.). I\'d like to achieve the same thing w[详细]
2023-04-03 13:21 分类:问答How to create a TestSuite with parameterized spring Junit tests
I am trying to bundle my tests in a TestSuite which will pick up files from a directory and run each one after loading spring context.[详细]
2023-04-03 10:50 分类:问答What is the best way to reset the database to a known state while testing database operations?
I\'m writing tests with JUnit for some methods operating on a test database. I need to reset t开发者_如何学Pythonhe database to the original state after each @Test. I\'m wondering what\'s the best wa[详细]
2023-04-03 05:05 分类:问答Java Unit Testing by Creating a mock object of an interface which does some work
Im not sure how to word what I want to do so I apologise in advance I\'m currently writing unit tests for some legacy code as part of my job. One of these bits of code is a (Java) HttpServlet which p[详细]
2023-04-03 05:00 分类:问答First test in each test suite fails connecting to the DB
We are running more than 2000 junit, Most of the tests connect to an Oracle database with jdbc calls. We have a problem with very few of the tests that can not connect to the DB for some reason. Here[详细]
2023-04-03 04:07 分类:问答How to refactor a method to make it easier to test
Below is a method that I\'m having a hard time figuring out how to test using JUnit. This method is difficult to test because it depends on the results of other methods (e.g. getClosestDcoumentCode).[详细]
2023-04-03 03:10 分类:问答