Java Doc for ThreadGroupTest.java in » Apache-Harmony-Java-SE » java-package » java » lang » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
Apache Harmony Java SE
»
java package
»
java.lang
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.ThreadGroupTest
ThreadGroupTest
public
class ThreadGroupTest extends TestCase
(Code)
Inner Class :class ExceptionHandler implements
Thread.UncaughtExceptionHandler
Inner Class :class ThreadGroupHandler extends
ThreadGroup
Inner Class :class TestThread extends
Thread
Method Summary
public
void
testActiveCount_CreateDestroySubgroup
()
public
void
testActiveCount_NewThreads
()
public
void
testActiveCount_NoThreads
()
public
void
testActiveCount_StartedTerminatedThreads
()
public
void
testActiveCount_Subgroup
()
public
void
testActiveGroupCount_DestroyNonEmptySubgroup
()
public
void
testActiveGroupCount_Subgroups
()
public
void
testCheckAccess
()
public
void
testDestroy_Destroyed
()
Checks the destroy() method for a destroyed thread group.
public
void
testDestroy_DestroyedSubgroup
()
Checks the destroy() method for a group containing a destroyed subgroup.
public
void
testDestroy_FinishedThreads
()
Verify destroying a group where one of subgroups is not empty but all threads in it have finished.
public
void
testDestroy_ThreeChildren
()
Checks the destroy() method for a group with 3 subgroups.
public
void
testDestroy_TwoChildren
()
Checks the destroy() method for a group with 2 subgroups.
public
void
testEnumerateThread
()
public
void
testEnumerateThreadBoolean_False
()
public
void
testEnumerateThreadGroup
()
public
void
testEnumerateThreadGroup_Destroyed
()
public
void
testEnumerateThreadGroup_False
()
public
void
testEnumerateThreadGroup_True
()
public
void
testEnumerateThread_True
()
public
void
testGetMaxPriority
()
public
void
testGetName
()
public
void
testGetParent
()
public
void
testGetParent_DestroyedGroup
()
public
void
testGetParent_TopLevelGroup
()
public
void
testInterrupt
()
public
void
testList
()
public
void
testParentOf
()
public
void
testSetDaemon
()
public
void
testSetMaxPriority_CreateSubgroup
()
public
void
testSetMaxPriority_Decrease
()
Decrease group's maxPriority.
public
void
testSetMaxPriority_DecreaseRecursively
()
public
void
testSetMaxPriority_HigherParent
()
public
void
testSetMaxPriority_Increase
()
Increase group's maxPriority.
public
void
testSetMaxPriority_IncreaseRecursively
()
public
void
testSetMaxPriority_OutOfRange
()
public
void
testSetMaxPriority_TopLevelGroup
()
public
void
testSuspend
()
public
void
testThreadGroupString_Null
()
public
void
testThreadGroupThreadGroupString
()
public
void
testThreadGroupThreadGroupString_InDestroyedGroup
()
public
void
testToString
()
public
void
testUncaughtExceptionHandler_Explicit
()
public
void
testUncaughtExceptionHandlers
()
public
void
testUncaughtException_ExplicitDefault
()
public
void
testUncaughtException_NullPointerException
()
public
void
testUncaughtException_ThreadDeath
()
public
void
testUncaughtException_ThreadGroupDefault
()
Method Detail
testActiveCount_CreateDestroySubgroup
public
void testActiveCount_CreateDestroySubgroup()
(Code)
activeCount() in a ThreadGroup with an empty subgroup
testActiveCount_NewThreads
public
void testActiveCount_NewThreads()
(Code)
activeCount() in a ThreadGroup with a few new threads
testActiveCount_NoThreads
public
void testActiveCount_NoThreads()
(Code)
activeCount() in a new ThreadGroup
testActiveCount_StartedTerminatedThreads
public
void testActiveCount_StartedTerminatedThreads()
(Code)
activeCount() in a ThreadGroup with a few started and terminated threads
testActiveCount_Subgroup
public
void testActiveCount_Subgroup()
(Code)
activeCount() in a ThreadGroup with a few threads running in a subgroups
testActiveGroupCount_DestroyNonEmptySubgroup
public
void testActiveGroupCount_DestroyNonEmptySubgroup()
(Code)
Verify activeGroupCount() after destroying a group where one of subgroups is not empty
testActiveGroupCount_Subgroups
public
void testActiveGroupCount_Subgroups()
(Code)
Verify activeGroupCount() for a group containing a few subgroups
testCheckAccess
public
void testCheckAccess()
(Code)
Verify the checkAccess() method
testDestroy_Destroyed
public
void testDestroy_Destroyed()
(Code)
Checks the destroy() method for a destroyed thread group. IllegalThreadStateException should be thrown.
testDestroy_DestroyedSubgroup
public
void testDestroy_DestroyedSubgroup()
(Code)
Checks the destroy() method for a group containing a destroyed subgroup. IllegalThreadStateException should not be thrown.
testDestroy_FinishedThreads
public
void testDestroy_FinishedThreads()
(Code)
Verify destroying a group where one of subgroups is not empty but all threads in it have finished.
testDestroy_ThreeChildren
public
void testDestroy_ThreeChildren()
(Code)
Checks the destroy() method for a group with 3 subgroups. Verifies the
destroyed
flag.
testDestroy_TwoChildren
public
void testDestroy_TwoChildren()
(Code)
Checks the destroy() method for a group with 2 subgroups. Verifies the activeGroupCount() value.
testEnumerateThread
public
void testEnumerateThread()
(Code)
Verify enumerate(Thread[])
testEnumerateThreadBoolean_False
public
void testEnumerateThreadBoolean_False()
(Code)
Verify enumerate(Thread[], false)
testEnumerateThreadGroup
public
void testEnumerateThreadGroup()
(Code)
Verify enumerate(ThreadGroup[])
testEnumerateThreadGroup_Destroyed
public
void testEnumerateThreadGroup_Destroyed()
(Code)
Verify enumerate(ThreadGroup[]) when there is a destroyed subgroup
testEnumerateThreadGroup_False
public
void testEnumerateThreadGroup_False()
(Code)
Verify enumerate(ThreadGroup[], false)
testEnumerateThreadGroup_True
public
void testEnumerateThreadGroup_True()
(Code)
Verify enumerate(ThreadGroup[], true)
testEnumerateThread_True
public
void testEnumerateThread_True()
(Code)
Verify enumerate(Thread[], true)
testGetMaxPriority
public
void testGetMaxPriority()
(Code)
Verify getMaxPriority()
testGetName
public
void testGetName()
(Code)
Verify getName()
testGetParent
public
void testGetParent()
(Code)
Verify getParent()
testGetParent_DestroyedGroup
public
void testGetParent_DestroyedGroup()
(Code)
Verify getParent() of a destroyed group
testGetParent_TopLevelGroup
public
void testGetParent_TopLevelGroup()
(Code)
Verify getParent() of a top-level group
testInterrupt
public
void testInterrupt()
(Code)
Interrupt a running thread
testList
public
void testList()
(Code)
Verify list()
testParentOf
public
void testParentOf()
(Code)
Verify parentOf()
testSetDaemon
public
void testSetDaemon()
(Code)
Verify set/isDaemon()
testSetMaxPriority_CreateSubgroup
public
void testSetMaxPriority_CreateSubgroup()
(Code)
Verify that maxPriority is inherited by a created subgroup
testSetMaxPriority_Decrease
public
void testSetMaxPriority_Decrease()
(Code)
Decrease group's maxPriority. Verify that threads in the thread group that already have a higher priority are not affected.
testSetMaxPriority_DecreaseRecursively
public
void testSetMaxPriority_DecreaseRecursively()
(Code)
Verify that lower maxPriority is set recursively to all subgroups
testSetMaxPriority_HigherParent
public
void testSetMaxPriority_HigherParent()
(Code)
Try to set maxPriority which is higher than the parent's one
testSetMaxPriority_Increase
public
void testSetMaxPriority_Increase()
(Code)
Increase group's maxPriority.
testSetMaxPriority_IncreaseRecursively
public
void testSetMaxPriority_IncreaseRecursively()
(Code)
Verify that higher maxPriority is set recursively to all subgroups
testSetMaxPriority_OutOfRange
public
void testSetMaxPriority_OutOfRange()
(Code)
Try to set maxPriority which is out of range
testSetMaxPriority_TopLevelGroup
public
void testSetMaxPriority_TopLevelGroup()
(Code)
Verify setMaxPriority() of a system group
testSuspend
public
void testSuspend()
(Code)
Verifies the suspend/resume() method
testThreadGroupString_Null
public
void testThreadGroupString_Null()
(Code)
test ThreadGroup(null)
testThreadGroupThreadGroupString
public
void testThreadGroupThreadGroupString()
(Code)
ThreadGroup(String)
testThreadGroupThreadGroupString_InDestroyedGroup
public
void testThreadGroupThreadGroupString_InDestroyedGroup()
(Code)
Create a ThreadGroup in a destroyed ThreadGroup
testToString
public
void testToString()
(Code)
Verify toString() output
testUncaughtExceptionHandler_Explicit
public
void testUncaughtExceptionHandler_Explicit()
(Code)
Verify that thread's explicit exception handler is used
testUncaughtExceptionHandlers
public
void testUncaughtExceptionHandlers()
(Code)
testUncaughtException_ExplicitDefault
public
void testUncaughtException_ExplicitDefault()
(Code)
Verify that thread's explicit exception handler is used first even if a default UncaughtExceptionHandler is set
testUncaughtException_NullPointerException
public
void testUncaughtException_NullPointerException()
(Code)
Verify that uncaughtException(Thread, Throwable) method prints a proper message
testUncaughtException_ThreadDeath
public
void testUncaughtException_ThreadDeath()
(Code)
Verify that uncaughtException(Thread, Throwable) method where Throwable is ThreadDeath does nothing
testUncaughtException_ThreadGroupDefault
public
void testUncaughtException_ThreadGroupDefault()
(Code)
Verify that uncaughtException() method of thread's parent ThreadGroup is called even if a default UncaughtExceptionHandler is set
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.