Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed ExampleTests #1458

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,62 +14,62 @@

package com.predic8.membrane.examples;

import com.predic8.membrane.examples.config.GettingStartedTest;
import com.predic8.membrane.examples.config.ProxiesXMLFullSampleTest;
import com.predic8.membrane.examples.config.ProxiesXMLSoapTest;
import com.predic8.membrane.examples.config.ProxiesXMLTest;
import com.predic8.membrane.examples.config.GettingStartedExampleTest;
import com.predic8.membrane.examples.config.ProxiesXMLFullExampleTest;
import com.predic8.membrane.examples.config.ProxiesXMLSoapExampleTest;
import com.predic8.membrane.examples.config.ProxiesXMLExampleTest;
import com.predic8.membrane.examples.env.HelpLinkExistenceTest;
import com.predic8.membrane.examples.tests.*;
import com.predic8.membrane.examples.tests.loadbalancing.Loadbalancing4XmlSessionTest;
import com.predic8.membrane.examples.tests.loadbalancing.Loadbalancing4XmlSessionExampleTest;
import com.predic8.membrane.examples.tests.openapi.APIProxyExampleTest;
import com.predic8.membrane.examples.tests.ssl.SSLServerApiWithTlsPemTest;
import com.predic8.membrane.examples.tests.ssl.SSLServerApiWithTlsPkcs12Test;
import com.predic8.membrane.examples.tests.ssl.ToBackendTest;
import com.predic8.membrane.examples.tests.validation.FormValidationTest;
import com.predic8.membrane.examples.tests.versioning.RoutingTest;
import com.predic8.membrane.examples.tests.ssl.SSLServerApiWithTlsPemExampleTest;
import com.predic8.membrane.examples.tests.ssl.SSLServerApiWithTlsPkcs12ExampleTest;
import com.predic8.membrane.examples.tests.ssl.ToBackendExampleTest;
import com.predic8.membrane.examples.tests.validation.FormValidationExampleTest;
import com.predic8.membrane.examples.tests.versioning.RoutingExampleTest;
import com.predic8.membrane.examples.tests.versioning.XsltExampleTest;
import com.predic8.membrane.examples.tutorials.rest.TutorialRestInitialTest;
import com.predic8.membrane.examples.tutorials.rest.TutorialRestStepsTest;
import com.predic8.membrane.examples.tutorials.rest.TutorialRestInitialExampleTest;
import com.predic8.membrane.examples.tutorials.rest.TutorialRestStepsExampleTest;
import org.junit.platform.suite.api.*;

@Suite
@SelectClasses({
GettingStartedTest.class, // See: https://membrane-api.io/getting-started
GettingStartedExampleTest.class, // See: https://membrane-api.io/getting-started
HelpLinkExistenceTest.class,

ACLTest.class,
BasicAuthTest.class,
FileExchangeStoreTest.class,
Loadbalancing4XmlSessionTest.class,
LoggingCSVTest.class,
LoggingJDBCTest.class,
LoggingTest.class,
LoginTest.class,
RewriterTest.class,
SSLServerApiWithTlsPkcs12Test.class,
SSLServerApiWithTlsPemTest.class,
ToBackendTest.class,
ThrottleTest.class,
XSLTTest.class,
ACLExampleTest.class,
BasicAuthExampleTest.class,
FileExchangeStoreExampleTest.class,
Loadbalancing4XmlSessionExampleTest.class,
LoggingCSVExampleTest.class,
LoggingJDBCExampleTest.class,
LoggingExampleTest.class,
LoginExampleTest.class,
RewriterExampleTest.class,
SSLServerApiWithTlsPkcs12ExampleTest.class,
SSLServerApiWithTlsPemExampleTest.class,
ToBackendExampleTest.class,
ThrottleExampleTest.class,
XSLTExampleTest.class,

FormValidationTest.class,
CustomInterceptorTest.class,
BasicXmlInterceptorTest.class,
FormValidationExampleTest.class,
CustomInterceptorExampleTest.class,
BasicXmlInterceptorExampleTest.class,

RoutingTest.class,
RoutingExampleTest.class,
XsltExampleTest.class,

// OpenAPI
APIProxyExampleTest.class,

// Tutorials
TutorialRestStepsTest.class,
TutorialRestInitialTest.class,
TutorialRestStepsExampleTest.class,
TutorialRestInitialExampleTest.class,

// Configuration
ProxiesXMLTest.class,
ProxiesXMLSoapTest.class,
ProxiesXMLFullSampleTest.class
ProxiesXMLExampleTest.class,
ProxiesXMLSoapExampleTest.class,
ProxiesXMLFullExampleTest.class

})
@ExcludeClassNamePatterns("com.predic8.membrane.examples.env.HelpLinkExistenceTest")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,30 @@
package com.predic8.membrane.examples;

import com.predic8.membrane.errorhandling.OpenAPIConfigErrorTest;
import com.predic8.membrane.examples.config.ProxiesXMLOfflineTest;
import com.predic8.membrane.examples.config.ProxiesXMLSecurityTest;
import com.predic8.membrane.examples.config.ProxiesXMLOfflineExampleTest;
import com.predic8.membrane.examples.config.ProxiesXMLSecurityExampleTest;
import com.predic8.membrane.examples.env.ConsistentVersionNumbers;
import com.predic8.membrane.examples.env.JavaLicenseInfoTest;
import com.predic8.membrane.examples.tests.*;
import com.predic8.membrane.examples.tests.loadbalancing.Loadbalancing1StaticTest;
import com.predic8.membrane.examples.tests.loadbalancing.Loadbalancing1StaticExampleTest;
import com.predic8.membrane.examples.tests.loadbalancing.Loadbalancing3ClientExampleTest;
import com.predic8.membrane.examples.tests.loadbalancing.Loadbalancing5MultipleTest;
import com.predic8.membrane.examples.tests.log.AccessLogTest;
import com.predic8.membrane.examples.tests.loadbalancing.Loadbalancing5MultipleExampleTest;
import com.predic8.membrane.examples.tests.log.AccessLogExampleTest;
import com.predic8.membrane.examples.tests.message_transformation.Json2XmlExampleTest;
import com.predic8.membrane.examples.tests.message_transformation.TransformationUsingJavascriptTest;
import com.predic8.membrane.examples.tests.message_transformation.Xml2JsonTest;
import com.predic8.membrane.examples.tests.oauth2.OAuth2APITest;
import com.predic8.membrane.examples.tests.oauth2.OAuth2CredentialsTest;
import com.predic8.membrane.examples.tests.oauth2.OAuth2MembraneTest;
import com.predic8.membrane.examples.tests.openapi.OpenAPIRewriteTest;
import com.predic8.membrane.examples.tests.openapi.OpenAPIValidationSimpleTest;
import com.predic8.membrane.examples.tests.openapi.OpenAPIValidationTest;
import com.predic8.membrane.examples.tests.opentelemetry.OpenTelemetryTest;
import com.predic8.membrane.examples.tests.message_transformation.TransformationUsingJavascriptExampleTest;
import com.predic8.membrane.examples.tests.message_transformation.Xml2JsonExampleTest;
import com.predic8.membrane.examples.tests.oauth2.OAuth2APIExampleTest;
import com.predic8.membrane.examples.tests.oauth2.OAuth2CredentialsExampleTest;
import com.predic8.membrane.examples.tests.oauth2.OAuth2MembraneExampleTest;
import com.predic8.membrane.examples.tests.openapi.OpenAPIRewriteExampleTest;
import com.predic8.membrane.examples.tests.openapi.OpenAPIValidationSimpleExampleTest;
import com.predic8.membrane.examples.tests.openapi.OpenAPIValidationExampleTest;
import com.predic8.membrane.examples.tests.opentelemetry.OpenTelemetryExampleTest;
import com.predic8.membrane.examples.tests.template.json.JsonTemplateExampleTest;
import com.predic8.membrane.examples.tests.template.text.TextTemplateExampleTest;
import com.predic8.membrane.examples.tests.template.xml.XMLTemplateExampleTest;
import com.predic8.membrane.examples.tests.validation.JSONSchemaValidationTest;
import com.predic8.membrane.examples.tests.validation.SOAPProxyValidationTest;
import com.predic8.membrane.examples.tests.validation.JSONSchemaValidationExampleTest;
import com.predic8.membrane.examples.tests.validation.SOAPProxyValidationExampleTest;
import com.predic8.membrane.examples.tests.validation.XMLValidationExampleTest;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;
Expand All @@ -52,61 +52,61 @@

// Proxy
CBRXPathExampleTest.class,
ProxiesXMLOfflineTest.class,
ProxiesXMLSecurityTest.class,
ProxiesXMLOfflineExampleTest.class,
ProxiesXMLSecurityExampleTest.class,

// Scripting
IfInterceptorExampleTest.class,
GroovyTest.class,
JavascriptTest.class,
GroovyExampleTest.class,
JavascriptExampleTest.class,

// Load Balancing
Loadbalancing1StaticTest.class,
Loadbalancing1StaticExampleTest.class,
Loadbalancing3ClientExampleTest.class,
Loadbalancing5MultipleTest.class,
Loadbalancing5MultipleExampleTest.class,

// Validation
JSONSchemaValidationTest.class,
JSONSchemaValidationExampleTest.class,
XMLValidationExampleTest.class,
SampleSoapServiceExampleTest.class,
SOAPProxyValidationTest.class,
SOAPProxyValidationExampleTest.class,

// Logging
AccessLogTest.class,
AccessLogExampleTest.class,

// Transformation
Xml2JsonTest.class,
Xml2JsonExampleTest.class,
Json2XmlExampleTest.class,
TransformationUsingJavascriptTest.class,
TransformationUsingJavascriptExampleTest.class,

// OAuth2
OAuth2APITest.class,
OAuth2MembraneTest.class,
OAuth2CredentialsTest.class,
OAuth2APIExampleTest.class,
OAuth2MembraneExampleTest.class,
OAuth2CredentialsExampleTest.class,

// OpenAPI
OpenAPIValidationSimpleTest.class,
OpenAPIValidationTest.class,
OpenTelemetryTest.class,
OpenAPIRewriteTest.class,
OpenAPIValidationSimpleExampleTest.class,
OpenAPIValidationExampleTest.class,
OpenTelemetryExampleTest.class,
OpenAPIRewriteExampleTest.class,

// Template
TextTemplateExampleTest.class,
JsonTemplateExampleTest.class,

// Security
JsonProtectionTest.class,
APIKeyTest.class,
APIKeyRBACTest.class,
APIKeyWithOpenAPITest.class,
JsonProtectionExampleTest.class,
APIKeyExampleTest.class,
APIKeyRBACExampleTest.class,
APIKeyWithOpenAPIExampleTest.class,
XMLTemplateExampleTest.class,
//DefaultConfigAdminConsoleTest.class*/

// XML
StaxInterceptorExampleTest.class,

// SOAP
AddSoapHeaderTest.class,
AddSoapHeaderExampleTest.class,

InternalProxyExampleTest.class
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
limitations under the License. */
package com.predic8.membrane.examples;

import com.predic8.membrane.examples.tests.integration.OAuth2Test;
import com.predic8.membrane.examples.tests.integration.OAuth2ExampleTest;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;

@Suite
@SelectClasses({
ConfigSerializationTest.class,
OAuth2Test.class
OAuth2ExampleTest.class
})
public class ExampleUnitTests {}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* <p>
* Needs an Internet connection to work!
*/
public class GettingStartedTest extends AbstractSampleMembraneStartStopTestcase {
public class GettingStartedExampleTest extends AbstractSampleMembraneStartStopTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
package com.predic8.membrane.examples.config;

import com.predic8.membrane.examples.util.*;
import io.restassured.*;
import io.restassured.response.*;
import org.junit.jupiter.api.*;
import org.skyscreamer.jsonassert.*;

Expand All @@ -27,7 +25,7 @@
import static org.hamcrest.Matchers.*;
import static org.junit.jupiter.api.Assertions.*;

public class ProxiesXMLTest extends AbstractSampleMembraneStartStopTestcase {
public class ProxiesXMLExampleTest extends AbstractSampleMembraneStartStopTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@
package com.predic8.membrane.examples.config;

import com.predic8.membrane.examples.util.*;
import io.restassured.*;
import io.restassured.filter.log.*;
import org.junit.jupiter.api.*;

import java.io.*;

import static com.predic8.membrane.core.http.MimeType.*;
import static io.restassured.RestAssured.*;

public class ProxiesXMLFullSampleTest extends AbstractSampleMembraneStartStopTestcase {
public class ProxiesXMLFullExampleTest extends AbstractSampleMembraneStartStopTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
package com.predic8.membrane.examples.config;

import com.predic8.membrane.examples.util.*;
import io.restassured.*;
import io.restassured.filter.log.*;
import org.junit.jupiter.api.*;
import org.skyscreamer.jsonassert.*;

Expand All @@ -26,7 +24,7 @@
import static io.restassured.RestAssured.*;
import static org.hamcrest.Matchers.*;

public class ProxiesXMLOfflineTest extends AbstractSampleMembraneStartStopTestcase {
public class ProxiesXMLOfflineExampleTest extends AbstractSampleMembraneStartStopTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import static javax.net.ssl.TrustManagerFactory.*;
import static org.junit.jupiter.api.Assertions.*;

public class ProxiesXMLSecurityTest extends AbstractSampleMembraneStartStopTestcase {
public class ProxiesXMLSecurityExampleTest extends AbstractSampleMembraneStartStopTestcase {

static final String DISABLE_HOSTNAME_VERIFICATION = "jdk.internal.httpclient.disableHostnameVerification";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import static org.hamcrest.Matchers.*;

@Disabled("We need to replace BLZ Service")
public class ProxiesXMLSoapTest extends AbstractSampleMembraneStartStopTestcase {
public class ProxiesXMLSoapExampleTest extends AbstractSampleMembraneStartStopTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import static com.predic8.membrane.test.AssertUtils.*;

public class ACLTest extends DistributionExtractingTestcase {
public class ACLExampleTest extends DistributionExtractingTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@

import static io.restassured.RestAssured.given;
import static io.restassured.RestAssured.when;
import static org.hamcrest.Matchers.equalTo;

public class APIKeyTest extends AbstractSampleMembraneStartStopTestcase {
public class APIKeyExampleTest extends AbstractSampleMembraneStartStopTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
import org.junit.jupiter.api.Test;

import static io.restassured.RestAssured.given;
import static io.restassured.RestAssured.when;
import static org.hamcrest.Matchers.equalTo;

public class APIKeyRBACTest extends AbstractSampleMembraneStartStopTestcase {
public class APIKeyRBACExampleTest extends AbstractSampleMembraneStartStopTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import static io.restassured.RestAssured.when;
import static org.hamcrest.Matchers.containsString;

public class APIKeyWithOpenAPITest extends AbstractSampleMembraneStartStopTestcase {
public class APIKeyWithOpenAPIExampleTest extends AbstractSampleMembraneStartStopTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import static java.io.File.*;
import static org.hamcrest.Matchers.*;

public class AddSoapHeaderTest extends DistributionExtractingTestcase {
public class AddSoapHeaderExampleTest extends DistributionExtractingTestcase {

@Override
protected String getExampleDirName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import com.predic8.membrane.examples.util.*;
import org.junit.jupiter.api.Test;

public class BasicAuthTest extends AbstractSampleMembraneStartStopTestcase {
public class BasicAuthExampleTest extends AbstractSampleMembraneStartStopTestcase {

public static final String CUSTOMER_HOST_LOCAL_STATIC = "http://localhost:2000/";
public static final String CUSTOMER_HOST_LOCAL_FILE = "http://localhost:3000/";
Expand Down
Loading
Loading