@Override protected void handleInit(Context context) { transformFn.init(context); }
@Override protected void handleInit(Context context) { transformFn.init(context); }
@Override protected void handleInit(Context context) { transformFn.init(context); }
@Override protected void handleInit(Context context) { transformFn.init(context); }
@Override protected void handleInit(Context context) { transformFn.init(context); }
mockContexts.put(1, mockTranslatorContext); when(mockContext.getApplicationTaskContext()).thenReturn(new SamzaSqlApplicationContext(mockContexts)); filterSpec.getTransformFn().init(mockContext); FilterFunction filterFn = (FilterFunction) Whitebox.getInternalState(filterSpec, "filterFn"); assertNotNull(filterFn);
mockContexts.put(1, mockTranslatorContext); when(mockContext.getApplicationTaskContext()).thenReturn(new SamzaSqlApplicationContext(mockContexts)); projectSpec.getTransformFn().init(mockContext); MapFunction mapFn = (MapFunction) Whitebox.getInternalState(projectSpec, "mapFn");
mockContexts.put(1, mockTranslatorContext); when(mockContext.getApplicationTaskContext()).thenReturn(new SamzaSqlApplicationContext(mockContexts)); projectSpec.getTransformFn().init(mockContext); MapFunction mapFn = (MapFunction) Whitebox.getInternalState(projectSpec, "mapFn"); assertNotNull(mapFn);