Skip to content

Commit

Permalink
multi-page post-merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Lemke committed Jan 18, 2023
1 parent f39dbd8 commit 26f24ff
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
8 changes: 8 additions & 0 deletions form-editor-cae/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@
<groupId>com.coremedia.cms</groupId>
<artifactId>coremedia-cache</artifactId>
</dependency>
<dependency>
<groupId>com.coremedia.cms</groupId>
<artifactId>cae-viewservices</artifactId>
</dependency>
<dependency>
<groupId>com.coremedia.cms</groupId>
<artifactId>coremedia-xml</artifactId>
</dependency>

<!-- Spring -->
<dependency>
Expand Down
9 changes: 9 additions & 0 deletions form-editor-shared/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
<groupId>com.coremedia.cms</groupId>
<artifactId>cap-multisite</artifactId>
</dependency>
<dependency>
<groupId>com.coremedia.cms</groupId>
<artifactId>coremedia-xml</artifactId>
</dependency>

<!-- Spring -->
<dependency>
Expand All @@ -63,6 +67,11 @@
<artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand Down
12 changes: 12 additions & 0 deletions form-editor-studio-lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@
<artifactId>spring-context</artifactId>
</dependency>

<!-- Other -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency>

<!-- Testing -->
<dependency>
<groupId>com.coremedia.cms</groupId>
Expand Down Expand Up @@ -119,6 +126,11 @@
<artifactId>cap-client-xml</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<scope>test</scope>
</dependency>


</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.coremedia.springframework.xml.ResourceAwareXmlBeanDefinitionReader;
import com.tallence.formeditor.FormEditorConfiguration;
import com.tallence.formeditor.FormEditorHelper;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -35,8 +36,11 @@
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.Scope;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import java.util.Arrays;
import java.util.Collections;
Expand All @@ -58,6 +62,11 @@ public class FormEditorValidatorTest {
@Autowired
private FormEditorValidator formEditorValidator;

@Before
public void setUp() {
RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(new MockHttpServletRequest()));
}

@Test
public void testValidDoc() {
Content testContent = contentRepository.getContent("2");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<stringProperty name="formAction" value="mailAction"/>
<stringProperty name="adminMails" value="admin@example.com"/>
<markupProperty name="formData" url="20formElements.xml" grammar="coremedia-struct-2008"/>
<intProperty name="pageableFormEnabled" value="1"/>
</version>
</document>
<document id="8" type="CMChannel" name="NavContext" modificationDate="2009-06-01T20:59:42.000+01:00">
Expand Down

0 comments on commit 26f24ff

Please sign in to comment.