Skip to content

Commit

Permalink
Preparations for the headless-form-module: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Lemke committed Sep 28, 2021
1 parent eb69ddf commit b6f2bcc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected boolean sendUserConfirmationMail(FormEditor target, List<FormElement<?
.filter(Objects::nonNull)
.filter(UsersMail.UsersMailData::isSendCopy)
.map(UsersMail.UsersMailData::getUsersMail)
.findFirst();
.findFirst();

if (userMailOptional.isPresent()) {
String userMail = userMailOptional.get();
Expand Down
8 changes: 8 additions & 0 deletions form-editor-shared/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<groupId>com.coremedia.cms</groupId>
<artifactId>cap-unified-api-util</artifactId>
</dependency>
<dependency>
<groupId>com.coremedia.cms</groupId>
<artifactId>cap-multisite</artifactId>
</dependency>

<!-- Spring -->
<dependency>
Expand Down Expand Up @@ -77,6 +81,10 @@
<artifactId>spotbugs-annotations</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<!-- Tests -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.coremedia.cap.common.IdHelper;
import com.coremedia.cap.content.Content;
import com.coremedia.cap.content.ContentRepository;
import com.coremedia.cap.multisite.impl.MultiSiteConfiguration;
import com.coremedia.cap.test.xmlrepo.XmlRepoConfiguration;
import com.coremedia.cap.test.xmlrepo.XmlUapiConfig;
import com.coremedia.springframework.xml.ResourceAwareXmlBeanDefinitionReader;
Expand Down Expand Up @@ -56,7 +57,7 @@
public class FormElementFactoryTest {

@ImportResource(reader = ResourceAwareXmlBeanDefinitionReader.class)
@Import({XmlRepoConfiguration.class})
@Import({XmlRepoConfiguration.class, MultiSiteConfiguration.class})
@ComponentScan(basePackages = "com.tallence.formeditor.parser")
public static class LocalTestConfig {
private static final String CONTENT_REPOSITORY = "classpath:/com/tallence/formeditor/testdata/contenttest.xml";
Expand Down

0 comments on commit b6f2bcc

Please sign in to comment.