|
|
|
@ -22,7 +22,9 @@ import java.util.concurrent.Executors;
@@ -22,7 +22,9 @@ import java.util.concurrent.Executors;
|
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
|
|
import io.netty.util.internal.ThreadLocalRandom; |
|
|
|
|
import org.junit.After; |
|
|
|
|
import org.junit.Before; |
|
|
|
|
import org.junit.Ignore; |
|
|
|
|
import org.junit.Test; |
|
|
|
|
import org.junit.runner.RunWith; |
|
|
|
|
import org.mockito.Mockito; |
|
|
|
@ -76,7 +78,13 @@ public class WeightCalculatorWebFilterConcurrentTests {
@@ -76,7 +78,13 @@ public class WeightCalculatorWebFilterConcurrentTests {
|
|
|
|
|
startTime = System.currentTimeMillis(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@After |
|
|
|
|
public void teardown() { |
|
|
|
|
executorService.shutdown(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
@Ignore |
|
|
|
|
public void WeightCalculatorWebFilter_threadSafeTest() { |
|
|
|
|
generateEvents(); |
|
|
|
|
|
|
|
|
|