This file contains hidden or 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
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Proxy; | |
public class MockUtils { | |
/** | |
* Proxy an interface to a real implementation. The implementation doesn't have to implement the interface, | |
* which can save on a lot of boilerplate for test doubles. | |
*/ | |
public static <T> T proxyToFake(Class<T> iface, Object forwardTo) { |
This file contains hidden or 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
name: Build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
OlderNewer