File tree Expand file tree Collapse file tree 5 files changed +15
-5
lines changed
src/test/java/org/baeldung/persistence/service Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 5353 <artifactId >hibernate-validator</artifactId >
5454 <version >${hibernate-validator.version} </version >
5555 </dependency >
56+ <dependency >
57+ <groupId >javax.el</groupId >
58+ <artifactId >javax.el-api</artifactId >
59+ <version >2.2.5</version >
60+ </dependency >
5661
5762 <!-- utils -->
5863
Original file line number Diff line number Diff line change 5858 <artifactId >hibernate-validator</artifactId >
5959 <version >${hibernate-validator.version} </version >
6060 </dependency >
61+ <dependency >
62+ <groupId >javax.el</groupId >
63+ <artifactId >javax.el-api</artifactId >
64+ <version >2.2.5</version >
65+ </dependency >
6166
6267 <!-- utils -->
6368
Original file line number Diff line number Diff line change 1515import org .baeldung .persistence .model .Foo ;
1616import org .junit .Test ;
1717import org .junit .runner .RunWith ;
18- import org .springframework .beans .factory .annotation .Autowired ;
1918import org .springframework .test .context .ContextConfiguration ;
2019import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
2120import org .springframework .test .context .support .AnnotationConfigContextLoader ;
@@ -28,9 +27,6 @@ public class FooServiceSortingTests {
2827 @ PersistenceContext
2928 private EntityManager entityManager ;
3029
31- @ Autowired
32- private FooService service ;
33-
3430 // tests
3531
3632 @ Test
Original file line number Diff line number Diff line change 2121@ RunWith (SpringJUnit4ClassRunner .class )
2222@ ContextConfiguration (classes = { UserConfig .class , ProductConfig .class })
2323@ TransactionConfiguration
24- public class JPAMultipleDBTest {
24+ public class JpaMultipleDBTest {
25+
2526 @ Autowired
2627 private UserRepository userRepository ;
2728
2829 @ Autowired
2930 private ProductRepository productRepository ;
3031
32+ // tests
33+
3134 @ Test
3235 @ Transactional ("userTransactionManager" )
3336 public void whenCreatingUser_thenCreated () {
Original file line number Diff line number Diff line change 88 FooPaginationPersistenceIntegrationTest .class
99 ,FooServicePersistenceIntegrationTest .class
1010 ,FooServiceSortingTests .class
11+ ,JpaMultipleDBTest .class
1112 // manual only
1213 // ,FooServiceSortingWitNullsManualTest.class
1314}) // @formatter:on
You can’t perform that action at this time.
0 commit comments