|
|
|
Junit test для DAO класса
|
|||
|---|---|---|---|
|
#18+
Делаю junit тест для DAO. Ексепшн The prefix "p" for attribute "p:driverClassName" associated with an element type "bean" is not bound. Код: java 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. test-context.xml Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. Код: java 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.06.2015, 21:50 |
|
||
|
Junit test для DAO класса
|
|||
|---|---|---|---|
|
#18+
гуглить пробовал? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.06.2015, 22:04 |
|
||
|
Junit test для DAO класса
|
|||
|---|---|---|---|
|
#18+
А зачем здесь префикс p? <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" p:driverClassName="org.h2.Driver" p:url="jdbc:h2:tcp://localhost:9092/~/QWE;INIT=create schema if not exists QWE\;" p:username="sa" p:password="" /> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.06.2015, 23:10 |
|
||
|
Junit test для DAO класса
|
|||
|---|---|---|---|
|
#18+
С этим разобрался ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.06.2015, 22:13 |
|
||
|
Junit test для DAO класса
|
|||
|---|---|---|---|
|
#18+
Сейчас вылетает ексепшн Could not autowire field: private com.epam.edu.jtc.dao.CoursesDAOImpl com.epam.edu.jtc.test.CourseTest.coursesDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.epam.edu.jtc.dao.CoursesDAOImpl] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.06.2015, 22:14 |
|
||
|
Junit test для DAO класса
|
|||
|---|---|---|---|
|
#18+
test-context.xml не находится по указанному пути ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.06.2015, 22:25 |
|
||
|
Junit test для DAO класса
|
|||
|---|---|---|---|
|
#18+
yelenatest-context.xml не находится по указанному пути А где он должен находиться? Он у меня в папке src/main/resourses . classpath-это и есть ресурсы же? В ресурсах у меня также application-context.xml, spring-config.xml. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.06.2015, 22:54 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=127&tid=2125271]: |
0ms |
get settings: |
6ms |
get forum list: |
12ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
34ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
28ms |
get tp. blocked users: |
1ms |
| others: | 218ms |
| total: | 313ms |

| 0 / 0 |
