Wie testen Sie eine Flink -Prozessfunktion?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie testen Sie eine Flink -Prozessfunktion?

by Anonymous » 15 Feb 2025, 09:52

Ich habe eine einfache Prozessfunktion, die die Zeichenfolge als Eingabe aufnimmt und eine Zeichenfolge als Ausgabe angibt. Wie testet ich dies mit jungit? Da die Prozesselementmethode eine Hohlraummethode ist und keinen Wert zurückgibt. < /p>

Code: Select all

public class SampleProcessFunction extends ProcessFunction{
@Override
public void processElement(String content, Context context, Collector collector) throws Exception {
String output = content + "output";
collector.collect(output);
}
}

Top