Skip to content

Commit 6181568

Browse files
committed
Replace java9 tests with java11
1 parent 8be6ffa commit 6181568

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

integration-tests/src/test/java/com/fnproject/fn/integrationtest/FunctionsTest.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,15 @@ public void shouldCallExistingFn() throws Exception {
4545

4646
@Test()
4747
public void checkBoilerPlate() throws Exception {
48-
for (String format : new String[]{"http-stream"}) {
49-
for (String runtime : new String[]{"java9", "java8"}) {
50-
IntegrationTestRule.TestContext tc = testRule.newTest();
51-
52-
String fnName = "bp" + format + runtime;
53-
tc.runFn("init", "--runtime", runtime, "--name", fnName, "--format", format);
54-
tc.rewritePOM();
55-
tc.runFn("--verbose", "deploy", "--app", tc.appName(), "--local");
56-
CmdResult rs = tc.runFnWithInput("wibble", "invoke", tc.appName(), fnName);
57-
assertThat(rs.getStdout()).contains("Hello, wibble!");
58-
}
48+
for (String runtime : new String[]{"java8", "java11"}) {
49+
IntegrationTestRule.TestContext tc = testRule.newTest();
50+
51+
String fnName = "bp" + format + runtime;
52+
tc.runFn("init", "--runtime", runtime, "--name", fnName);
53+
tc.rewritePOM();
54+
tc.runFn("--verbose", "deploy", "--app", tc.appName(), "--local");
55+
CmdResult rs = tc.runFnWithInput("wibble", "invoke", tc.appName(), fnName);
56+
assertThat(rs.getStdout()).contains("Hello, wibble!");
5957
}
6058
}
6159

0 commit comments

Comments
 (0)