Cleaning up some stuff in the proxy implementation.

This commit is contained in:
Andrew Steinborn
2018-08-21 22:29:01 -04:00
parent 2d0c826ec9
commit 7b84da2fa7
12 changed files with 54 additions and 27 deletions

View File

@@ -7,11 +7,11 @@ import java.util.concurrent.Executors;
import static org.junit.jupiter.api.Assertions.*;
class ThreadRecorderThreadFactoryTest {
class RecordingThreadFactoryTest {
@Test
void newThread() throws Exception {
ThreadRecorderThreadFactory factory = new ThreadRecorderThreadFactory(Executors.defaultThreadFactory());
RecordingThreadFactory factory = new RecordingThreadFactory(Executors.defaultThreadFactory());
CountDownLatch started = new CountDownLatch(1);
CountDownLatch endThread = new CountDownLatch(1);
factory.newThread(() -> {