PhaseTests.java (spring-boot-2.7.3) | : | PhaseTests.java (spring-boot-2.7.4) | ||
---|---|---|---|---|
skipping to change at line 146 | skipping to change at line 146 | |||
Phase phase = new Phase("test", true); | Phase phase = new Phase("test", true); | |||
phase.withNetworkMode("test"); | phase.withNetworkMode("test"); | |||
Update update = mock(Update.class); | Update update = mock(Update.class); | |||
phase.apply(update); | phase.apply(update); | |||
then(update).should().withCommand("/cnb/lifecycle/test"); | then(update).should().withCommand("/cnb/lifecycle/test"); | |||
then(update).should().withNetworkMode("test"); | then(update).should().withNetworkMode("test"); | |||
then(update).should().withLabel("author", "spring-boot"); | then(update).should().withLabel("author", "spring-boot"); | |||
then(update).shouldHaveNoMoreInteractions(); | then(update).shouldHaveNoMoreInteractions(); | |||
} | } | |||
@Test | ||||
void applyWhenWithSecurityOptionsUpdatesConfigurationWithSecurityOptions( | ||||
) { | ||||
Phase phase = new Phase("test", true); | ||||
phase.withSecurityOption("option1=value1"); | ||||
phase.withSecurityOption("option2=value2"); | ||||
Update update = mock(Update.class); | ||||
phase.apply(update); | ||||
then(update).should().withCommand("/cnb/lifecycle/test"); | ||||
then(update).should().withLabel("author", "spring-boot"); | ||||
then(update).should().withSecurityOption("option1=value1"); | ||||
then(update).should().withSecurityOption("option2=value2"); | ||||
then(update).shouldHaveNoMoreInteractions(); | ||||
} | ||||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 15 lines changed or added |