public class BasicThreadFactoryTest extends Object
BasicThreadFactory.| Constructor and Description |
|---|
BasicThreadFactoryTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testBuildDefaults()
Tests the default values used by the builder.
|
void |
testBuilderReset()
Tests the reset() method of the builder.
|
void |
testBuilderResetAfterBuild()
Tests whether reset() is automatically called after build().
|
void |
testBuildNamingPatternNull()
Tries to set a null naming pattern.
|
void |
testBuildUncaughtExceptionHandlerNull()
Tries to set a null exception handler.
|
void |
testBuildWrappedFactoryNull()
Tries to set a null wrapped factory.
|
void |
testNewThreadDaemonFalse()
Tests whether the daemon status of new threads can be turned off.
|
void |
testNewThreadDaemonTrue()
Tests whether daemon threads can be created.
|
void |
testNewThreadExHandler()
Tests whether the exception handler is set if one is provided.
|
void |
testNewThreadNamingPattern()
Tests whether the naming pattern is applied to new threads.
|
void |
testNewThreadNoDaemonFlag()
Tests whether the daemon flag is not touched on newly created threads if
it is not specified.
|
void |
testNewThreadNoExHandler()
Tests whether the original exception hander is not touched if none is
specified.
|
void |
testNewThreadNoNamingPattern()
Tests whether the thread name is not modified if no naming pattern is
set.
|
void |
testNewThreadNoPriority()
Tests whether the original priority is not changed if no priority is
specified.
|
void |
testNewThreadPriority()
Tests whether the priority is set on newly created threads.
|
public BasicThreadFactoryTest()
public void testBuildDefaults()
public void testBuildNamingPatternNull()
public void testBuildWrappedFactoryNull()
public void testBuildUncaughtExceptionHandlerNull()
public void testBuilderReset()
public void testBuilderResetAfterBuild()
public void testNewThreadNamingPattern()
public void testNewThreadNoNamingPattern()
public void testNewThreadDaemonTrue()
public void testNewThreadDaemonFalse()
public void testNewThreadNoDaemonFlag()
public void testNewThreadPriority()
public void testNewThreadNoPriority()
public void testNewThreadExHandler()
public void testNewThreadNoExHandler()
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.