Save point: [skip ci]

* AbstractHttpRequestTest sub classes
This commit is contained in:
alandavis
2022-07-13 09:27:01 +01:00
parent 2875b305bc
commit 1a53d99369
8 changed files with 11 additions and 21 deletions

View File

@@ -27,11 +27,11 @@
package org.alfresco.transform.aio;
import org.alfresco.transform.base.AbstractHttpRequestTest;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
public class AIOControllerHttpRequestTest extends AbstractHttpRequestTest
/**
* Tests All-In-One with a server test harness that talks to the TransformController using http.
*/
public class AIOHttpRequestTest extends AbstractHttpRequestTest
{
@Override
protected String getTransformerName()
@@ -42,7 +42,6 @@ public class AIOControllerHttpRequestTest extends AbstractHttpRequestTest
@Override
protected String getSourceExtension()
{
// Currently using same extension as ImageMagick tests
return "jpg";
}
}

View File

@@ -27,12 +27,10 @@
package org.alfresco.transform.imagemagick;
import org.alfresco.transform.base.AbstractHttpRequestTest;
import org.springframework.boot.test.context.SpringBootTest;
/**
* Tests ImageMagickController with a server test harness.
* Tests ImageMagick with a server test harness that talks to the TransformController using http.
*/
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class ImageMagickHttpRequestTest extends AbstractHttpRequestTest
{
@Override

View File

@@ -27,12 +27,10 @@
package org.alfresco.transform.libreoffice;
import org.alfresco.transform.base.AbstractHttpRequestTest;
import org.springframework.boot.test.context.SpringBootTest;
/**
* Tests LibreOfficeController with a server test harness.
* Tests LibreOffice with a server test harness that talks to the TransformController using http.
*/
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class LibreOfficeHttpRequestTest extends AbstractHttpRequestTest
{
@Override

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Transform Core
* %%
* Copyright (C) 2005-2022 Alfresco Software Limited
* Copyright (C) 2005 - 2022 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Transform Core
* %%
* Copyright (C) 2005-2022 Alfresco Software Limited
* Copyright (C) 2005 - 2022 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -27,12 +27,10 @@
package org.alfresco.transform.misc;
import org.alfresco.transform.base.AbstractHttpRequestTest;
import org.springframework.boot.test.context.SpringBootTest;
/**
* Tests MiscController with a server test harness.
* Tests Misc with a server test harness that talks to the TransformController using http.
*/
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class MiscTransformerHttpRequestTest extends AbstractHttpRequestTest
{
@Override

View File

@@ -31,9 +31,8 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
/**
* Tests AlfrescoPdfRendererController with a server test harness.
* Tests PdfRenderer with a server test harness that talks to the TransformController using http.
*/
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
public class AlfrescoPdfRendererHttpRequestTest extends AbstractHttpRequestTest
{
@Override

View File

@@ -27,12 +27,10 @@
package org.alfresco.transform.tika;
import org.alfresco.transform.base.AbstractHttpRequestTest;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.util.LinkedMultiValueMap;
/**
* Tests TikaController with a server test harness.
* Tests Tika with a server test harness that talks to the TransformController using http.
*/
public class TikaHttpRequestTest extends AbstractHttpRequestTest
{