This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PowerMockDemo { | |
public void someMethod(String someArgument){ | |
ClassA a = new ClassA(); | |
ClassB b = new ClassB(); | |
ClassC c = new ClassC(); | |
c.setFirst(a); | |
c.setSecond(b); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.drage.tutorial.mocking; | |
public class CarSelector { | |
private final CarBuilderService service; | |
public CarSelector(CarBuilderService service) { | |
this.service = service; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomerDTO { | |
private String firstName, lastName; | |
// getter & setters | |
} |