@@ -49,21 +49,6 @@ func testSpringBoot(platform switchblade.Platform, fixtures string) func(*testin
4949 })
5050 })
5151
52- context ("with Spring Auto-reconfiguration" , func () {
53- it ("detects Spring Framework" , func () {
54- deployment , logs , err := platform .Deploy .
55- WithEnv (map [string ]string {
56- "BP_JAVA_VERSION" : "11" ,
57- }).
58- Execute (name , filepath .Join (fixtures , "containers" , "spring_boot_staged" ))
59- Expect (err ).NotTo (HaveOccurred (), logs .String )
60-
61- // Spring auto-reconfiguration should be detected
62- Expect (logs .String ()).To (ContainSubstring ("Java Buildpack" ))
63- Eventually (deployment ).Should (matchers .Serve (Not (BeEmpty ())))
64- })
65- })
66-
6752 context ("with embedded Tomcat" , func () {
6853 it ("starts successfully" , func () {
6954 deployment , logs , err := platform .Deploy .
@@ -85,11 +70,13 @@ func testSpringBoot(platform switchblade.Platform, fixtures string) func(*testin
8570 it ("includes java-cfenv when Spring Boot is detected" , func () {
8671 deployment , logs , err := platform .Deploy .
8772 WithEnv (map [string ]string {
88- "BP_JAVA_VERSION" : "11" ,
89- "JBP_CONFIG_JAVA_CFENV " : "{enabled: true}" ,
73+ "BP_JAVA_VERSION" : "11" ,
74+ "JBP_CONFIG_JAVA_CF_ENV " : "{enabled: true}" ,
9075 }).
9176 Execute (name , filepath .Join (fixtures , "containers" , "spring_boot_staged" ))
9277 Expect (err ).NotTo (HaveOccurred (), logs .String )
78+ // Fixture is not a Spring3 app, so Java CF Env detect should not pass
79+ Expect (logs .String ()).NotTo (ContainSubstring ("Java CF Env" ))
9380
9481 Eventually (deployment ).Should (matchers .Serve (Not (BeEmpty ())))
9582 })
0 commit comments