@@ -28,11 +28,13 @@ class SpringBootTransformerTest : BaseTransformerTest() {
2828
2929 runWithSuccess(shadowJarPath)
3030
31- val content = outputShadowedJar.use { it.getContent(SpringBootTransformer .PATH_SPRING_FACTORIES ) }
32- assertThat(content).isEqualTo(
33- " org.springframework.boot.autoconfigure.EnableAutoConfiguration=" +
34- " com.example.FooAutoConfiguration,com.example.BarAutoConfiguration\n " ,
35- )
31+ val content =
32+ outputShadowedJar.use { it.getContent(SpringBootTransformer .PATH_SPRING_FACTORIES ) }
33+ assertThat(content)
34+ .isEqualTo(
35+ " org.springframework.boot.autoconfigure.EnableAutoConfiguration=" +
36+ " com.example.FooAutoConfiguration,com.example.BarAutoConfiguration\n "
37+ )
3638 }
3739
3840 @Test
@@ -57,13 +59,15 @@ class SpringBootTransformerTest : BaseTransformerTest() {
5759
5860 runWithSuccess(shadowJarPath)
5961
60- val content = outputShadowedJar.use { it.getContent(SpringBootTransformer .PATH_SPRING_FACTORIES ) }
61- assertThat(content).isEqualTo(
62- " org.springframework.boot.autoconfigure.EnableAutoConfiguration=" +
63- " com.example.FooAutoConfiguration,com.example.BarAutoConfiguration\n " +
64- " org.springframework.context.ApplicationListener=" +
65- " com.example.FooListener,com.example.BarListener\n " ,
66- )
62+ val content =
63+ outputShadowedJar.use { it.getContent(SpringBootTransformer .PATH_SPRING_FACTORIES ) }
64+ assertThat(content)
65+ .isEqualTo(
66+ " org.springframework.boot.autoconfigure.EnableAutoConfiguration=" +
67+ " com.example.FooAutoConfiguration,com.example.BarAutoConfiguration\n " +
68+ " org.springframework.context.ApplicationListener=" +
69+ " com.example.FooListener,com.example.BarListener\n "
70+ )
6771 }
6872
6973 @Test
@@ -86,12 +90,14 @@ class SpringBootTransformerTest : BaseTransformerTest() {
8690
8791 runWithSuccess(shadowJarPath)
8892
89- val content = outputShadowedJar.use {
90- it.getContent(" META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports" )
91- }
92- assertThat(content).isEqualTo(
93- " com.example.FooAutoConfiguration\n com.example.BarAutoConfiguration" ,
94- )
93+ val content =
94+ outputShadowedJar.use {
95+ it.getContent(
96+ " META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports"
97+ )
98+ }
99+ assertThat(content)
100+ .isEqualTo(" com.example.FooAutoConfiguration\n com.example.BarAutoConfiguration" )
95101 }
96102
97103 @Test
@@ -114,12 +120,16 @@ class SpringBootTransformerTest : BaseTransformerTest() {
114120
115121 runWithSuccess(shadowJarPath)
116122
117- val content = outputShadowedJar.use {
118- it.getContent(" META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports" )
119- }
120- assertThat(content).isEqualTo(
121- " com.example.FooAutoConfiguration\n com.example.BarAutoConfiguration\n com.example.BazAutoConfiguration" ,
122- )
123+ val content =
124+ outputShadowedJar.use {
125+ it.getContent(
126+ " META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports"
127+ )
128+ }
129+ assertThat(content)
130+ .isEqualTo(
131+ " com.example.FooAutoConfiguration\n com.example.BarAutoConfiguration\n com.example.BazAutoConfiguration"
132+ )
123133 }
124134
125135 @Test
@@ -142,11 +152,13 @@ class SpringBootTransformerTest : BaseTransformerTest() {
142152
143153 runWithSuccess(shadowJarPath)
144154
145- val content = outputShadowedJar.use { it.getContent(SpringBootTransformer .PATH_SPRING_HANDLERS ) }
146- assertThat(content).isEqualTo(
147- " http\\ ://www.example.com/schema/bar=com.example.BarNamespaceHandler\n " +
148- " http\\ ://www.example.com/schema/foo=com.example.FooNamespaceHandler\n " ,
149- )
155+ val content =
156+ outputShadowedJar.use { it.getContent(SpringBootTransformer .PATH_SPRING_HANDLERS ) }
157+ assertThat(content)
158+ .isEqualTo(
159+ " http\\ ://www.example.com/schema/bar=com.example.BarNamespaceHandler\n " +
160+ " http\\ ://www.example.com/schema/foo=com.example.FooNamespaceHandler\n "
161+ )
150162 }
151163
152164 @Test
@@ -172,10 +184,10 @@ class SpringBootTransformerTest : BaseTransformerTest() {
172184
173185 runWithSuccess(shadowJarPath)
174186
175- val content = outputShadowedJar.use { it.getContent( SpringBootTransformer . PATH_SPRING_FACTORIES ) }
176- assertThat(content).isEqualTo(
177- " shadow.example.SomeInterface=shadow.example.SomeImplementation \n " ,
178- )
187+ val content =
188+ outputShadowedJar.use { it.getContent( SpringBootTransformer . PATH_SPRING_FACTORIES ) }
189+ assertThat(content)
190+ .isEqualTo( " shadow.example.SomeInterface=shadow.example.SomeImplementation \n " )
179191 }
180192
181193 @Test
@@ -201,9 +213,12 @@ class SpringBootTransformerTest : BaseTransformerTest() {
201213
202214 runWithSuccess(shadowJarPath)
203215
204- val content = outputShadowedJar.use {
205- it.getContent(" META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports" )
206- }
216+ val content =
217+ outputShadowedJar.use {
218+ it.getContent(
219+ " META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports"
220+ )
221+ }
207222 assertThat(content).isEqualTo(" shadow.example.FooAutoConfiguration" )
208223 }
209224}
0 commit comments