Skip to content

Commit

Permalink
New TCK runner profile for Glassfish + Krazo module
Browse files Browse the repository at this point in the history
  • Loading branch information
chkal committed Mar 21, 2021
1 parent 8c02368 commit 09370c6
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 1 deletion.
37 changes: 36 additions & 1 deletion tck/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2018, 2019 Eclipse Krazo committers and contributors
Copyright (c) 2018, 2021 Eclipse Krazo committers and contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -149,6 +149,41 @@
</dependencies>
</profile>

<!-- Run TCK against Glassfish 6 with Krazo installed as a Glassfish module -->
<profile>
<id>tck-glassfish-module</id>
<activation>
<property>
<name>tck-env</name>
<value>glassfish-module</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<dependenciesToScan>jakarta.mvc.tck:mvc-tck-tests</dependenciesToScan>
<systemPropertyVariables>
<arquillian.launch>glassfish</arquillian.launch>
<jakarta.mvc.tck.api.BaseArchiveProvider>
org.eclipse.krazo.tck.glassfish.GlassfishModuleArchiveProvider
</jakarta.mvc.tck.api.BaseArchiveProvider>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-glassfish-remote-3.1</artifactId>
<version>1.0.0.Final</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>

<!-- Run TCK against Wildfly -->
<profile>
<id>tck-wildfly</id>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (c) 2021 Eclipse Krazo committers and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.eclipse.krazo.tck.glassfish;

import org.eclipse.krazo.tck.AbstractArchiveProvider;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.WebArchive;

/**
* BaseArchiveProvider implementation for running TCK against Glassfish with Krazo installed as a Glassfish module
*/
public class GlassfishModuleArchiveProvider extends AbstractArchiveProvider {

@Override
public WebArchive getBaseArchive() {
return ShrinkWrap.create(WebArchive.class);
}

}

0 comments on commit 09370c6

Please sign in to comment.