Hi,
I have been struggling for a few hours now with getting Spring Test case to
work with annotations and JUnit4.5
Any ideas on how to get it to work?
When I add the Spring context annotations, I get no output in the Console
log.
Thanks in advance.
Here is the code.
package test;
import static org.junit.Assert.assertEquals;
import java.util.logging.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import
org.springframework.test.context.support.DependencyInjectionTestExecutionLis
tener;
@RunWith(SpringJUnit4ClassRunner.class)
@TestExecutionListeners({DependencyInjectionTestExecutionListener.class})
@ContextConfiguration(locations = {"classpath:context-test.xml" })
public class TestPerson {
private static Logger log =
Logger.getLogger(TestPerson.class.getName());
@Test
public void testFindAll() {
log.info("entered testFindAll");
assertEquals(1, 1);
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---