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 0697631 commit a05db5d
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 a05db5d

Please sign in to comment.