Skip to content

Commit c19d049

Browse files
HuangXingBodianfu
authored andcommitted
[FLINK-20793][core] Fix the NamesTest and JarSubmissionITCase due to code style refactor
This closes apache#14514.
1 parent 4dcaa3a commit c19d049

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

flink-java/src/test/java/org/apache/flink/api/java/operators/NamesTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public boolean filter(String value) throws Exception {
6262
})
6363
.output(new DiscardingOutputFormat<String>());
6464
Plan plan = env.createProgramPlan();
65-
testForName("Filter at testDefaultName(NamesTest.java:55)", plan);
65+
testForName("Filter at testDefaultName(NamesTest.java:54)", plan);
6666
}
6767

6868
@Test
@@ -117,7 +117,8 @@ public void join(
117117
public boolean preVisit(Operator<?> visitable) {
118118
if (visitable instanceof InnerJoinOperatorBase) {
119119
Assert.assertEquals(
120-
"Join at testJoinWith(NamesTest.java:93)", visitable.getName());
120+
"Join at testJoinWith(NamesTest.java:101)",
121+
visitable.getName());
121122
}
122123
return true;
123124
}

flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarSubmissionITCase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void testJarSubmission() throws Exception {
9595
final JobPlanInfo planResponse = showPlan(planHandler, storedJarName, restfulGateway);
9696
// we're only interested in the core functionality so checking for a small detail is
9797
// sufficient
98-
Assert.assertThat(planResponse.getJsonPlan(), containsString("TestProgram.java:30"));
98+
Assert.assertThat(planResponse.getJsonPlan(), containsString("TestProgram.java:28"));
9999

100100
runJar(runHandler, storedJarName, restfulGateway);
101101

0 commit comments

Comments
 (0)