dependency « unit test « Java Testing Q&A

Home
Java Testing Q&A
1.Development
2.FindBugs
3.HTMLUnit
4.hudson
5.junit
6.performance
7.plugin
8.profile
9.selenium
10.Tools
11.unit test
Java Testing Q&A » unit test » dependency 

1. How to unit test a class derived from a base class with lots of dependencies?    stackoverflow.com

Im trying to unit test a class in some Java code that I've inherited. Problem is that it derives from a class that is part of the company's application framwwork. Upon construction, ...

2. Advice on unit testing, class to test has dependency on Java serial port    stackoverflow.com

I am working on a large legacy java application. It already has an extensive existing framework in place for handling device drivers. I need to create a new device driver for ...

3. Best strategy to set dependencies from within unit tests?    stackoverflow.com

Assume a class Foo, with a dependency Bar which is injected by some DI-Framework (CDI in this case):

public class Foo {

   @Inject
   private Bar bar;
   ...

4. Mock framework works with dependency injection framework in unit test    stackoverflow.com

When I writing tests with EasyMock and Guice framework, I encounter a problem. The code is like:

class A {
    B b;

    @Inject
    ...

5. Remove dependencies for Unit tests    stackoverflow.com

I want to unit test my code without a dependency on having the back end service up and running on my google app engine. What is the best way to ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.