test_class.declarator: signalled = false
test_class.modifier: static volatile
test_class.original_string: static volatile boolean signalled = false;
test_class.type: boolean
test_class.var_name: signalled
test_class.file: bonecp/src/test/java/com/jolbox/bonecp/TestCustomThreadFactory.java
test_class.identifier: TestCustomThreadFactory
test_case.body: @Test
  	public void testUncaughtException() throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InterruptedException{
  		CustomThreadFactory testClass = new CustomThreadFactory("test", false);
  		Logger mockLogger = TestUtils.mockLogger(testClass.getClass());
  		makeThreadSafe(mockLogger, true);
  
  		ExecutorService executor = Executors.newSingleThreadExecutor(testClass);
  		mockLogger.error((String)anyObject(), (Throwable)anyObject());
  		expectLastCall().once();
  		replay(mockLogger);
  		executor.execute(new MockThread());
  		
  		for (int i=0; i < 5; i++) {
  				signalled = true;
  			Thread.sleep(400);
  		}
  		verify(mockLogger);
  
  
  	}
test_case.class_method_signature: TestCustomThreadFactory.testUncaughtException()
test_case.full_signature: @Test public void testUncaughtException()
test_case.identifier: testUncaughtException
test_case.invocations: mockLogger getClass makeThreadSafe newSingleThreadExecutor error anyObject anyObject once expectLastCall replay execute sleep verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUncaughtException()
focal_class.declarator: daemon
focal_class.modifier: private
focal_class.original_string: private boolean daemon;
focal_class.type: boolean
focal_class.var_name: daemon
focal_class.declarator: threadName
focal_class.modifier: private
focal_class.original_string: private String threadName;
focal_class.type: String
focal_class.var_name: threadName
focal_class.declarator: logger = LoggerFactory.getLogger(CustomThreadFactory.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(CustomThreadFactory.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: bonecp/src/main/java/com/jolbox/bonecp/CustomThreadFactory.java
focal_class.identifier: CustomThreadFactory
focal_class.interfaces: implements ThreadFactory, UncaughtExceptionHandler
focal_class.class_method_signature: CustomThreadFactory.CustomThreadFactory(String threadName, boolean daemon)
focal_class.full_signature: public  CustomThreadFactory(String threadName, boolean daemon)
focal_class.identifier: CustomThreadFactory
focal_class.modifiers: public
focal_class.parameters: (String threadName, boolean daemon)
focal_class.signature:  CustomThreadFactory(String threadName, boolean daemon)
focal_class.class_method_signature: CustomThreadFactory.newThread(Runnable r)
focal_class.full_signature: public Thread newThread(Runnable r)
focal_class.identifier: newThread
focal_class.modifiers: public
focal_class.parameters: (Runnable r)
focal_class.return: Thread
focal_class.signature: Thread newThread(Runnable r)
focal_class.class_method_signature: CustomThreadFactory.uncaughtException(Thread thread, Throwable throwable)
focal_class.full_signature: public void uncaughtException(Thread thread, Throwable throwable)
focal_class.identifier: uncaughtException
focal_class.modifiers: public
focal_class.parameters: (Thread thread, Throwable throwable)
focal_class.return: void
focal_class.signature: void uncaughtException(Thread thread, Throwable throwable)
focal_method.body: public void uncaughtException(Thread thread, Throwable throwable) {
  		logger.error("Uncaught Exception in thread "+ thread.getName(), throwable);
  	}
focal_method.class_method_signature: CustomThreadFactory.uncaughtException(Thread thread, Throwable throwable)
focal_method.full_signature: public void uncaughtException(Thread thread, Throwable throwable)
focal_method.identifier: uncaughtException
focal_method.invocations: error getName
focal_method.modifiers: public
focal_method.parameters: (Thread thread, Throwable throwable)
focal_method.return: void
focal_method.signature: void uncaughtException(Thread thread, Throwable throwable)