Skip to content

Commit cb8d9bc

Browse files
committed
work
1 parent c1c36cb commit cb8d9bc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/test/java/org/woehlke/greenshop/frontend/CatalogControllerTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
import org.junit.runner.RunWith;
1515
import org.springframework.test.context.ContextConfiguration;
1616
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
17-
import org.springframework.test.context.transaction.TransactionConfiguration;
1817
import org.springframework.test.context.web.WebAppConfiguration;
1918
import org.springframework.test.web.servlet.MockMvc;
2019
import 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
2726
public class CatalogControllerTest {
2827

src/test/java/org/woehlke/greenshop/oodm/catalog/repositories/ProductDescriptionRepositoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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){

0 commit comments

Comments
 (0)