use of io.github.wysohn.triggerreactor.core.config.source.GsonConfigSource in project TriggerReactor by wysohn.
the class TestGsonConfigSource method init.
@Before
public void init() {
mockMain = Mockito.mock(TriggerReactorCore.class);
mockFile = Mockito.mock(File.class);
stringWriter = new StringWriter();
manager = new GsonConfigSource(mockFile, (f) -> new StringReader(jsonString), (f) -> stringWriter);
Mockito.when(mockFile.exists()).thenReturn(true);
Mockito.when(mockFile.length()).thenReturn(Long.MAX_VALUE);
}
Aggregations