java - How can i add classes to classpath with gradle? -
i had spring mvc project xml configurations base, , change java code ones. problem is, have applicationcontexttest
there specifics configurations test. when run gradle test
fail error:
/home/karim/workspace/spring-project/src/test/java/org/my-com/my-project/services/phoneservicetest.java:13: error: package config not exist import config.applicationcontexttest; ^ /home/karim/workspace/spring-project/src/test/java/org/my-com/my-project/services/phoneservicetest.java: error: cannot find symbol @contextconfiguration(classes=applicationcontexttest.class) ^
i think understand error means, there no config
package in classpath right?
the applicationcontexttest
class @ src/test/resources/config
. how can fix this?
the resources folder for... resources (images, properties files, etc.). source files go in src/test/java
.
Comments
Post a Comment