forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAEL-8939: Adding a Spring Context test in all Spring Modules (change…
…s for around 9 more modules.. work in progress..)
- Loading branch information
1 parent
dd273f6
commit b96244d
Showing
10 changed files
with
162 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
spring-boot-angular-ecommerce/src/test/java/org/baeldung/SpringContextIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.baeldung; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
import com.baeldung.ecommerce.EcommerceApplicationIntegrationTest; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(classes = EcommerceApplicationIntegrationTest.class) | ||
public class SpringContextIntegrationTest { | ||
|
||
@Test | ||
public void whenSpringContextIsBootstrapped_thenNoExceptions() { | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
spring-boot-autoconfiguration/src/test/java/org/baeldung/SpringContextIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.baeldung; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
import com.baeldung.autoconfiguration.example.AutoconfigurationApplication; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(classes = AutoconfigurationApplication.class) | ||
@EnableJpaRepositories(basePackages = { "com.baeldung.autoconfiguration.example" }) | ||
public class SpringContextIntegrationTest { | ||
|
||
@Test | ||
public void whenSpringContextIsBootstrapped_thenNoExceptions() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...er-spring-boot-autoconfigure/src/test/java/org/baeldung/SpringContextIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.baeldung; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; | ||
|
||
import com.baeldung.greeter.autoconfigure.GreeterAutoConfiguration; | ||
|
||
@RunWith(SpringJUnit4ClassRunner.class) | ||
@ContextConfiguration(classes = GreeterAutoConfiguration.class) | ||
public class SpringContextIntegrationTest { | ||
|
||
@Test | ||
public void whenSpringContextIsBootstrapped_thenNoExceptions() { | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...eeter-spring-boot-sample-app/src/test/java/org/baeldung/SpringContextIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.baeldung; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
import com.baeldung.greeter.sample.GreeterSampleApplication; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(classes = GreeterSampleApplication.class) | ||
public class SpringContextIntegrationTest { | ||
|
||
@Test | ||
public void whenSpringContextIsBootstrapped_thenNoExceptions() { | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...t-h2/spring-boot-h2-database/src/test/java/org/baeldung/SpringContextIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.baeldung; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
import com.baeldung.h2db.demo.SpringBootApp; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(classes = SpringBootApp.class) | ||
public class SpringContextIntegrationTest { | ||
|
||
@Test | ||
public void whenSpringContextIsBootstrapped_thenNoExceptions() { | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...h2/spring-boot-h2-remote-app/src/test/java/org/baeldung/SpringContextIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.baeldung; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
import com.baeldung.h2db.demo.ClientSpringBootApp; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(classes = ClientSpringBootApp.class) | ||
public class SpringContextIntegrationTest { | ||
|
||
@Test | ||
public void whenSpringContextIsBootstrapped_thenNoExceptions() { | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
spring-boot-jasypt/src/test/java/org/baeldung/SpringContextIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.baeldung; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
import com.baeldung.jasypt.Main; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(classes = Main.class) | ||
public class SpringContextIntegrationTest { | ||
|
||
@Test | ||
public void whenSpringContextIsBootstrapped_thenNoExceptions() { | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
spring-data-rest-querydsl/src/test/java/org/baeldung/SpringContextIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.baeldung; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
import com.baeldung.Application; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(classes = Application.class) | ||
public class SpringContextIntegrationTest { | ||
|
||
@Test | ||
public void whenSpringContextIsBootstrapped_thenNoExceptions() { | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
spring-mobile/src/test/java/org/baeldung/SpringContextIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.baeldung; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
import com.baeldung.Application; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(classes = Application.class) | ||
public class SpringContextIntegrationTest { | ||
|
||
@Test | ||
public void whenSpringContextIsBootstrapped_thenNoExceptions() { | ||
} | ||
} |