Skip to content

Commit

Permalink
Merge pull request #1191 from olamy/tckrefactor-cleanup-leftover-test
Browse files Browse the repository at this point in the history
remove left over test code which can break when using an empty maven repository
  • Loading branch information
olamy authored Aug 28, 2023
2 parents 365d073 + 713699c commit f7ff710
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@
import com.sun.ts.tests.servlet.common.util.StaticLog;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.shrinkwrap.resolver.api.maven.Maven;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class CommonServlets {

Expand All @@ -26,17 +21,6 @@ public class CommonServlets {

private CommonServlets() {
List<JavaArchive> archives = new ArrayList<>();

File[] files = Maven.configureResolver().workOffline().loadPomFromFile("pom.xml")
.resolve("org.slf4j:slf4j-simple")
.withTransitivity()
.asFile();
List<JavaArchive> slf4jJars =
Arrays.stream(files).map(file -> ShrinkWrap.createFromZipFile(JavaArchive.class, file))
.collect(Collectors.toList());

//archives.addAll(slf4jJars);

archives.add(ShrinkWrap.create(JavaArchive.class, "common-servlets.jar")
.addClasses(GenericCheckTestResultServlet.class, GenericTCKServlet.class, RequestTestServlet.class,
HttpCheckTestResultServlet.class, HttpRequestTestServlet.class, RequestTests.class,
Expand Down

0 comments on commit f7ff710

Please sign in to comment.