the following code will pass in release 2.2.9 but in 2.3.2
@SpringBootTest
@ActiveProfiles("test1,test2")
@ContextConfiguration(classes = SpringBootTestWithActiveProfilesWithCommaTests.class)
public class SpringBootTestWithActiveProfilesWithCommaTests
{
@Autowired
private Environment environment;
@Test
void getActiveProfiles()
{
assertThat(this.environment.getActiveProfiles()).containsOnly("test1", "test2");
}
}
Comment From: snicoll
Thanks for the report. I am not sure yet what was the change that led to this but the test above looks wrong to me if you intend to enable two profiles. It should rather be @ActiveProfiles({"test1", "test2"})
. When I do that change, this test passes for me.
Comment From: snicoll
The release notes for 2.3 also has a dedicated section about this. Please make sure to review them when upgrading.