Skip to content

Commit

Permalink
use already existing resource in concurrency test
Browse files Browse the repository at this point in the history
  • Loading branch information
awojcicki authored and frantuma committed Jan 26, 2024
1 parent ead9d1d commit 1dee776
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;

import io.swagger.functional.test.resources.CarResource;
import io.swagger.models.Swagger;
import org.testng.Assert;
import org.testng.annotations.Test;
Expand All @@ -37,7 +38,7 @@ public void testProcessConcurrent() throws InterruptedException, ExecutionExcept
final UriInfo uriInfo = mock(UriInfo.class);
final URI uri = URI.create("testUrl");

given(app.getClasses()).willReturn(new HashSet<Class<?>>(Arrays.asList(ConcurrentProcessSampleResource.class)));
given(app.getClasses()).willReturn(new HashSet<Class<?>>(Arrays.asList(CarResource.class)));
given(servletConfig.getServletContext()).willReturn(servletContext);
given(uriInfo.getBaseUri()).willReturn(uri);

Expand Down

This file was deleted.

0 comments on commit 1dee776

Please sign in to comment.