File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/test/java/org/woehlke/greenshop
oodm/catalog/repositories Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 14
14
import org .junit .runner .RunWith ;
15
15
import org .springframework .test .context .ContextConfiguration ;
16
16
import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
17
- import org .springframework .test .context .transaction .TransactionConfiguration ;
18
17
import org .springframework .test .context .web .WebAppConfiguration ;
19
18
import org .springframework .test .web .servlet .MockMvc ;
20
19
import org .springframework .web .context .WebApplicationContext ;
21
20
22
21
@ WebAppConfiguration
23
22
@ RunWith (SpringJUnit4ClassRunner .class )
24
23
@ ContextConfiguration ("classpath:/servlet-context.xml" )
25
- @ TransactionConfiguration (transactionManager ="transactionManager" , defaultRollback =false )
24
+ // @TransactionConfiguration(transactionManager="transactionManager", defaultRollback=false)
26
25
@ Transactional
27
26
public class CatalogControllerTest {
28
27
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public void findByLanguageOrderByProductDateAddedTest() throws Exception {
62
62
@ Test
63
63
public void findByManufacturerTest () throws Exception {
64
64
Language language =languageRepository .findByCode ("en" );
65
- Manufacturer manufacturer = manufacturerRepository .findOne (4L );
65
+ Manufacturer manufacturer = manufacturerRepository .getOne (4L );
66
66
List <ProductDescription > page = productDescriptionRepositoryDao .findByManufacturer (manufacturer , language );
67
67
logger .info ("------------------------------------------------------" );
68
68
for (ProductDescription p : page ){
You can’t perform that action at this time.
0 commit comments