test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/utils/NamedThreadFactoryTest.java
test_class.identifier: NamedThreadFactoryTest
test_case.body: @Test
      public void testNewThread() throws Exception {
          NamedThreadFactory factory = new NamedThreadFactory();
          Thread t = factory.newThread(Mockito.mock(Runnable.class));
          assertThat(t.getName(), allOf(containsString("pool-"), containsString("-thread-")));
          assertFalse(t.isDaemon());
          // since security manager is not installed.
          assertSame(t.getThreadGroup(), Thread.currentThread().getThreadGroup());
      }
test_case.class_method_signature: NamedThreadFactoryTest.testNewThread()
test_case.full_signature: @Test public void testNewThread()
test_case.identifier: testNewThread
test_case.invocations: newThread mock assertThat getName allOf containsString containsString assertFalse isDaemon assertSame getThreadGroup getThreadGroup currentThread
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNewThread()
focal_class.declarator: POOL_SEQ = new AtomicInteger(1)
focal_class.modifier: protected static final
focal_class.original_string: protected static final AtomicInteger POOL_SEQ = new AtomicInteger(1);
focal_class.type: AtomicInteger
focal_class.var_name: POOL_SEQ
focal_class.declarator: mThreadNum = new AtomicInteger(1)
focal_class.modifier: protected final
focal_class.original_string: protected final AtomicInteger mThreadNum = new AtomicInteger(1);
focal_class.type: AtomicInteger
focal_class.var_name: mThreadNum
focal_class.declarator: mPrefix
focal_class.modifier: protected final
focal_class.original_string: protected final String mPrefix;
focal_class.type: String
focal_class.var_name: mPrefix
focal_class.declarator: mDaemon
focal_class.modifier: protected final
focal_class.original_string: protected final boolean mDaemon;
focal_class.type: boolean
focal_class.var_name: mDaemon
focal_class.declarator: mGroup
focal_class.modifier: protected final
focal_class.original_string: protected final ThreadGroup mGroup;
focal_class.type: ThreadGroup
focal_class.var_name: mGroup
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/utils/NamedThreadFactory.java
focal_class.identifier: NamedThreadFactory
focal_class.interfaces: implements ThreadFactory
focal_class.class_method_signature: NamedThreadFactory.NamedThreadFactory()
focal_class.full_signature: public  NamedThreadFactory()
focal_class.identifier: NamedThreadFactory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  NamedThreadFactory()
focal_class.class_method_signature: NamedThreadFactory.NamedThreadFactory(String prefix)
focal_class.full_signature: public  NamedThreadFactory(String prefix)
focal_class.identifier: NamedThreadFactory
focal_class.modifiers: public
focal_class.parameters: (String prefix)
focal_class.signature:  NamedThreadFactory(String prefix)
focal_class.class_method_signature: NamedThreadFactory.NamedThreadFactory(String prefix, boolean daemon)
focal_class.full_signature: public  NamedThreadFactory(String prefix, boolean daemon)
focal_class.identifier: NamedThreadFactory
focal_class.modifiers: public
focal_class.parameters: (String prefix, boolean daemon)
focal_class.signature:  NamedThreadFactory(String prefix, boolean daemon)
focal_class.class_method_signature: NamedThreadFactory.newThread(Runnable runnable)
focal_class.full_signature: @Override public Thread newThread(Runnable runnable)
focal_class.identifier: newThread
focal_class.modifiers: @Override public
focal_class.parameters: (Runnable runnable)
focal_class.return: Thread
focal_class.signature: Thread newThread(Runnable runnable)
focal_class.class_method_signature: NamedThreadFactory.getThreadGroup()
focal_class.full_signature: public ThreadGroup getThreadGroup()
focal_class.identifier: getThreadGroup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ThreadGroup
focal_class.signature: ThreadGroup getThreadGroup()
focal_method.body: @Override
      public Thread newThread(Runnable runnable) {
          String name = mPrefix + mThreadNum.getAndIncrement();
          Thread ret = new Thread(mGroup, runnable, name, 0);
          ret.setDaemon(mDaemon);
          return ret;
      }
focal_method.class_method_signature: NamedThreadFactory.newThread(Runnable runnable)
focal_method.full_signature: @Override public Thread newThread(Runnable runnable)
focal_method.identifier: newThread
focal_method.invocations: getAndIncrement setDaemon
focal_method.modifiers: @Override public
focal_method.parameters: (Runnable runnable)
focal_method.return: Thread
focal_method.signature: Thread newThread(Runnable runnable)