Fix build

This commit is contained in:
alandavis
2022-08-08 16:16:55 +01:00
parent 3e58acfdb9
commit f646ed86bd
13 changed files with 58 additions and 34 deletions

View File

@@ -5,10 +5,10 @@
<name>- Misc</name>
<parent>
<artifactId>alfresco-transform-core</artifactId>
<groupId>org.alfresco</groupId>
<version>2.6.1-SNAPSHOT</version>
<artifactId>alfresco-transform-core</artifactId>
<relativePath>../../pom.xml</relativePath>
<version>2.6.1-SNAPSHOT</version>
</parent>
<properties>

View File

@@ -26,14 +26,11 @@
*/
package org.alfresco.transform.misc;
import com.google.common.collect.ImmutableSet;
import org.alfresco.transform.base.AbstractBaseTest;
import org.alfresco.transform.base.html.OptionLister;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.text.PDFTextStripper;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.test.web.servlet.MvcResult;
import org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder;
@@ -65,8 +62,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
*/
public class MiscTest extends AbstractBaseTest
{
@Autowired OptionLister optionLister;
protected final String sourceEncoding = "UTF-8";
protected final String targetEncoding = "UTF-8";
protected final String targetMimetype = MIMETYPE_TEXT_PLAIN;
@@ -503,14 +498,4 @@ public class MiscTest extends AbstractBaseTest
super.targetMimetype = this.targetMimetype;
super.queueTransformRequestUsingDirectAccessUrlTest();
}
@Test
public void optionListTest()
{
assertEquals(ImmutableSet.of(
"pageLimit",
"targetEncoding",
"extractMapping"),
optionLister.getOptionNames(controller.transformConfig(0).getBody().getTransformOptions()));
}
}