| 12345678910111213141516171819202122 |
- package com.uas.platform.b2c;
- import java.io.IOException;
- import org.springframework.context.support.ClassPathXmlApplicationContext;
- import com.uas.message.mail.service.MailService;
- public class TestMailService {
- // @Test
- public void testSend() throws IOException {
- String config = TestMailService.class.getPackage().getName().replace('.', '/') + "/dubbo-consumer.xml";
- @SuppressWarnings("resource")
- ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);
- context.start();
- MailService service = (MailService) context.getBean("mailService");
- service.findLogs(1, 20);
- System.in.read();
- }
- }
|