@SpringBootTest(classes={fr.sii.ogham.spring.v2.autoconfigure.OghamSpringBoot2AutoConfiguration.class,SpringWebBeanResolutionTest.TestApplication.class}, webEnvironment=RANDOM_PORT, properties={"spring.mail.host=127.0.0.1","spring.mail.port=${greenmail.smtp.port}","mail.smtp.from=spring.test@foo.bar","ogham.sms.smpp.host=localhost","ogham.sms.smpp.port=${jsmpp.server.port}"}) @ContextConfiguration(initializers={fr.sii.ogham.testing.extension.spring.GreenMailInitializer.class,fr.sii.ogham.testing.extension.spring.JsmppServerInitializer.class}) public class SpringWebBeanResolutionTest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SpringWebBeanResolutionTest.ErrorDto |
static class |
SpringWebBeanResolutionTest.TestApplication |
Modifier and Type | Field and Description |
---|---|
com.icegreen.greenmail.junit4.GreenMailRule |
greenMail |
LoggingTestRule |
loggingRule |
(package private) int |
port |
SmppServerRule<org.jsmpp.bean.SubmitSm> |
smppServer |
Constructor and Description |
---|
SpringWebBeanResolutionTest() |
Modifier and Type | Method and Description |
---|---|
void |
emailUsingThymeleafTemplateInAsyncMethodCantResolveUrls() |
void |
emailUsingThymeleafTemplateInAsyncMethodShouldResolveBeans() |
void |
emailUsingThymeleafTemplateShouldResolveBeansAndUrls() |
void |
smsUsingThymeleafTemplateInAsyncMethodCantResolveUrls() |
void |
smsUsingThymeleafTemplateInAsyncMethodShouldResolveBeans() |
void |
smsUsingThymeleafTemplateShouldResolveBeansAndUrls() |
public final LoggingTestRule loggingRule
@Autowired public com.icegreen.greenmail.junit4.GreenMailRule greenMail
@Autowired public SmppServerRule<org.jsmpp.bean.SubmitSm> smppServer
@Value(value="${local.server.port}") int port
public void emailUsingThymeleafTemplateShouldResolveBeansAndUrls() throws MessagingException, IOException
MessagingException
IOException
public void smsUsingThymeleafTemplateShouldResolveBeansAndUrls() throws MessagingException, IOException
MessagingException
IOException
public void emailUsingThymeleafTemplateInAsyncMethodShouldResolveBeans() throws MessagingException, IOException
MessagingException
IOException
public void smsUsingThymeleafTemplateInAsyncMethodShouldResolveBeans() throws MessagingException, IOException
MessagingException
IOException
public void emailUsingThymeleafTemplateInAsyncMethodCantResolveUrls() throws MessagingException, IOException
MessagingException
IOException
public void smsUsingThymeleafTemplateInAsyncMethodCantResolveUrls() throws MessagingException, IOException
MessagingException
IOException
Copyright © 2021. All rights reserved.