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 1414import org .junit .runner .RunWith ;
1515import org .springframework .test .context .ContextConfiguration ;
1616import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
17- import org .springframework .test .context .transaction .TransactionConfiguration ;
1817import org .springframework .test .context .web .WebAppConfiguration ;
1918import org .springframework .test .web .servlet .MockMvc ;
2019import org .springframework .web .context .WebApplicationContext ;
2120
2221@ WebAppConfiguration
2322@ RunWith (SpringJUnit4ClassRunner .class )
2423@ ContextConfiguration ("classpath:/servlet-context.xml" )
25- @ TransactionConfiguration (transactionManager ="transactionManager" , defaultRollback =false )
24+ // @TransactionConfiguration(transactionManager="transactionManager", defaultRollback=false)
2625@ Transactional
2726public class CatalogControllerTest {
2827
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public void findByLanguageOrderByProductDateAddedTest() throws Exception {
6262 @ Test
6363 public void findByManufacturerTest () throws Exception {
6464 Language language =languageRepository .findByCode ("en" );
65- Manufacturer manufacturer = manufacturerRepository .findOne (4L );
65+ Manufacturer manufacturer = manufacturerRepository .getOne (4L );
6666 List <ProductDescription > page = productDescriptionRepositoryDao .findByManufacturer (manufacturer , language );
6767 logger .info ("------------------------------------------------------" );
6868 for (ProductDescription p : page ){
You can’t perform that action at this time.
0 commit comments